I have simple question but i can't directly find it in tutorials etc.
I'm making a texteditor and i use the GUI builder in Netbeans to generate my user interface code.
I made a menu that contains the menu items: cut copy and paste.
I use a jTextArea as my textfield but in this textfield cut copy and paste allready works as it should.
My question is how can i, when i press the menuitem cut in the menu, let the computer execute the ctrl-x combination?
(since it allready works when i select text and then press ctrl-x in the textfield, i only need to bind the cut menuitem to the ctrl-x keypress)
this is my event code for the menuitem cut
Code:private void cutActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}

