undoAction.setProperties(msg, "Action.Undo"); undoAction.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Z, mod)); redoAction = new RTextAreaEditorKit.RedoAction(); redoAction.setProperties(msg, "Action.Redo"); redoAction.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Y, mod));
mnemonic = bundle.getString("RedoMnemonic").charAt(0); desc = bundle.getString("RedoDesc"); redoAction = new RTextAreaEditorKit.RedoAction(name, null, desc, new Integer(mnemonic), KeyStroke.getKeyStroke(KeyEvent.VK_Y, mod));
undoAction.setProperties(msg, "Action.Undo"); undoAction.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Z, mod)); redoAction = new RTextAreaEditorKit.RedoAction(); redoAction.setProperties(msg, "Action.Redo"); redoAction.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Y, mod));