FileDocCategorySizeDatePackage
ActionExample.javaAPI DocExample3855Thu Oct 24 20:14:28 BST 2002None

ActionExample

public class ActionExample extends Button implements ActionListener, Accessible

Fields Summary
Constructors Summary
public ActionExample()

         super("Press this Button");
         addActionListener(this);
     
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent e)

         System.out.println("The button was pressed!");
     
public javax.accessibility.AccessibleContextgetAccessibleContext()

         return (new ActionAccessibleContext());
     
public static voidmain(java.lang.String[] s)


        ActionExample example = new ActionExample();
        
        JFrame frame = new JFrame("AccessibleAction Example");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(example, BorderLayout.CENTER);
        frame.setSize(100, 100); 
        frame.setVisible(true);
    
public voidprocessActionEvent(java.awt.event.ActionEvent e)

         super.processActionEvent(e);