Eine gute Antwort könnte sein:

No. The diagram leaves that relationship out.

Skeleton of the ButtonQuitter Program

Here is the program, designed according to the relationship diagram:

import java.awt.*;
import java.awt.____________.*;
import ____________.swing.*;

public class ButtonQuitter extends _____ implements _____________
{
  JButton bQuit = new JButton("Click here to Exit");

  public ButtonQuitter()
  {
    getContentPane().________( new FlowLayout() );
    bQuit._________________( this );
    getContentPane()._____( bQuit );
  }

  public void _______________( ActionEvent evt)
  {
    System.exit( 0 );
  }

  public static void main ( String[] args )
  {
    buttonQuitter frame = new buttonQuitter();

    frame.setSize( 200, 150 );
    frame.__________( true );

  }
}

FRAGE 22:

There seem to be some blanks. How many can you fill in correctly?

Inhaltsverzeichnis