System.out.println("Button Pressed");
// add the button to the applet theButton = new Button("Press Me"); add(theButton); // make this applet an action listener theButton.addActionListener(this); // make this applet a mouse listener theButton.addMouseListener(this);
System.out.println("Mouse Entered");
System.out.println("Mouse Exited");