Buttons Example (Cont)
public static void main(String[] args) {
ButtonTest buttontest = new ButtonTest("BTEx");
buttontest.setVisible(true);
}
// Old event Model
/* public boolean handleEvent(Event e) {
if (e.id == Event.WINDOW_DESTROY) {
dispose();
System.exit(0);
return true;
}
return super.handleEvent(e);
} */
Previous slide
Next slide
Back to first slide
View graphic version