FileDocCategorySizeDatePackage
ExampleApplet1.javaAPI DocExample1971Sun Jan 04 20:51:40 GMT 1998None

ExampleApplet1

public class ExampleApplet1 extends Applet implements MouseListener, ActionListener

Fields Summary
protected Button
theButton
Constructors Summary
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent e)

      System.out.println("Button Pressed");
   
public voidinit()

      // 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);
   
public voidmouseClicked(java.awt.event.MouseEvent e)

   
public voidmouseEntered(java.awt.event.MouseEvent e)

      System.out.println("Mouse Entered");
   
public voidmouseExited(java.awt.event.MouseEvent e)

      System.out.println("Mouse Exited");
   
public voidmousePressed(java.awt.event.MouseEvent e)

   
public voidmouseReleased(java.awt.event.MouseEvent e)