FileDocCategorySizeDatePackage
ActionExample2.javaAPI DocExample3641Mon Nov 09 12:45:52 GMT 1998None

ActionExample2

public class ActionExample2 extends Button implements ActionListener, Accessible

Fields Summary
Constructors Summary
public ActionExample2()

         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)


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

         super.processActionEvent(e);