Java Reference
In-Depth Information
public void windowClosing (WindowEvent ev) {
notifyDestroyed();
}
} );
frame.pack();
}
public void startApp() {
frame.show();
if (simulation == null) {
simulation = new Simulation();
simulation.start();
}
}
public void pauseApp() {
}
public void destroyApp (boolean unconditional) {
height = -100000000;
frame.dispose();
}
}
Summary
After the short introduction in which we introduced the use of AWT components, you should now
be familiar with handling those that are contained in the AWT. Moreover, you have learned to use
layout managers to place AWT components in a container such as panels and frames and even
know how to handle events that might be invoked by user interactions.
 
Search WWH ::




Custom Search