title: How to enable copy/cut/paste jMenuItem
body: <p>I am making text editor in netbeans and have added  jMenuItems called Copy,Cut &amp; Paste in the Edit menu.</p>
  
  <p>How do I enable these buttons to perform these functions after actionPerformed()</p>
  
  <p>Here is my attempt:</p>
  
  <pre><code>    private void CopyActionPerformed(java.awt.event.ActionEvent evt) {                                     
  
         JMenuItem Copy = new JMenuItem(new DefaultEditorKit.CopyAction()); 
      }                                    
  
      private void PasteActionPerformed(java.awt.event.ActionEvent evt) {                                      
       JMenuItem Paste = new JMenuItem(new DefaultEditorKit.PasteAction()); 
      }                                     
  
      private void CutActionPerformed(java.awt.event.ActionEvent evt) {                                    
         JMenuItem Cut = new JMenuItem(new DefaultEditorKit.CutAction()); 
      }                                   
  </code></pre>