Created
December 10, 2010 15:59
-
-
Save Cellane/736381 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fillMenuItem = new fillActionClass ("Fill", KeyStroke.getKeyStroke (KeyEvent.VK_5, shortcutKeyMask)); | |
| private class fillActionClass extends G_Action implements ActionListener { | |
| public void actionPerformed (ActionEvent e) { | |
| activeTaskId = 4; | |
| } | |
| } | |
| public class G_Action extends AbstractAction { | |
| public G_Action () { | |
| } | |
| public G_Action (String text, KeyStroke shortcut) { | |
| super (text); | |
| putValue (ACCELERATOR_KEY, shortcut); | |
| } | |
| public void actionPerformed (ActionEvent e) { | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment