Skip to content

Instantly share code, notes, and snippets.

@Cellane
Created December 10, 2010 15:59
Show Gist options
  • Save Cellane/736381 to your computer and use it in GitHub Desktop.
Save Cellane/736381 to your computer and use it in GitHub Desktop.
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