I created a small application using NetBeans 8.1 on OSX by following these steps:
- I created a new JForm using the Swing GUI forms category
- I added three menus:

- I added JDialog with text fields and linked it to the third menu ("TAnalyse").
In this JDialog, I need copy / paste functions for text fields. The problem is that copy / paste only works in this dialog box with "ctrl" + "c", "x" or "v", and not with the standard "cmd" osx.
I tried adding the following line of code to the JForm constructor, but it did not work:
KeyStroke stroke = KeyStroke.getKeyStroke(KeyEvent.VK_C, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask());
:
JDK7 OSX Yosemite. "". ( "", "" ) .
?
Update:
GUI NetBeans (Swing GUI Forms → JDialog). JFrame JMenuItem GUI. - :
public NewJDialogGUI(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
AbstractAction copyAction = new DefaultEditorKit.CopyAction();
copyAction.putValue(Action.ACCELERATOR_KEY,KeyStroke.getKeyStroke(KeyEvent.VK_C, MASK));
this.jMenuItem1.setAction(copyAction);
this.jMenuItem1.setText("Copy");
this.jMenuItem1.setMnemonic(KeyEvent.VK_C);
}
:

Update2:
GUI Netbeans (Swing GUI Forms → Application sample form).
:

, Netbeans ( Java) , .
:
