public void setAccel(Action act, int key) {
public static void setAccel(Action act, int key) {
    public void setAccel(Action act, int key) {        act.putValue(Action.ACCELERATOR_KEY,                KeyStroke.getKeyStroke(key,                        Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));    }