title: Button click to ctrl key mnemonic in JFrame
body: <p>I have a button in a JFrame. When I click the button, I want to associate the click event with a mnemonic. Say for instance, if I click the button named <code>Cut</code>, I want <code>ctrl+x</code> to be executed and the selected text to be cut.  </p>
  
  <pre><code> jButton1.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent e)
          {
  
  
          }
      });   
  </code></pre>
  
  <p>What is the action to be performed to achieve this?</p>