1 16 17 package swingwtx.swing; 18 19 import swingwt.awt.event.*; 20 21 29 class JButtonMappedAction extends AbstractAction { 30 31 JButton button = null; 32 33 public JButtonMappedAction(JButton b) { 34 button = b; 35 } 36 public void actionPerformed(ActionEvent e) { 37 button.processActionEvent(0); 38 } 39 public JButton getJButton() { return button; } 40 41 } | Popular Tags |