FileDocCategorySizeDatePackage
Beeper.javaAPI DocExample592Tue Dec 12 18:58:54 GMT 2000None

Beeper

public class Beeper extends JApplet implements ActionListener

Fields Summary
JButton
button
Constructors Summary
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent e)

        Toolkit.getDefaultToolkit().beep();
    
public voidinit()

        button = new JButton("Click Me");
        getContentPane().add(button, BorderLayout.CENTER);
        button.addActionListener(this);