PPT Slide
BorderLayout layout;
Button panicButton;
public void init() {
layout = new BorderLayout();
setLayout( layout );
panicButton = new Button("Press Me!");
panicButton.addActionListener(new
PanicButtonListener());
add("North", panicButton);
Label alabel;
if (reallyAnApplet)
alabel= new Label("This is an applet.");
else
alabel= new
Label("This is not an applet but an application.");
add("Center",alabel);
}
Previous slide
Next slide
Back to first slide
View graphic version