Package gnu.testlet.javax.swing.AbstractAction

Examples of gnu.testlet.javax.swing.AbstractAction.MyAction


  private void testConstructor1(TestHarness harness)
  {
    harness.checkPoint("JMenuItem(Action)");
   
    // check for bug parade 4304129
    MyAction a = new MyAction();
    a.putValue(Action.NAME, "Action 1");
    a.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke('A'));
    a.putValue(Action.MNEMONIC_KEY, new Integer(50));
    a.putValue(Action.ACTION_COMMAND_KEY, "ActionCommand");
    JMenuItem item = new JMenuItem(a);
    harness.check(item.getText(), "Action 1");
    harness.check(item.getAccelerator(), KeyStroke.getKeyStroke('A'));
    harness.check(item.getMnemonic(), 50);
    harness.check(item.getActionCommand(), "ActionCommand");
View Full Code Here

TOP

Related Classes of gnu.testlet.javax.swing.AbstractAction.MyAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.