News

Event handling in Java 1.0. public boolean mouseDown(Event e, int x, int y) ... To demonstrate, here’s a simple program that prints a message when a button is pressed: Listing 2.