cb.setContents(path, path);
cb.setContents(path, path); if (selectedComponent == jarFileList) removeJarButtonActionPerformed(evt); else if (selectedComponent == sourceDirList) removeSrcDirButtonActionPerformed(evt); else if (selectedComponent == classpathEntryList) removeClasspathEntryButtonActionPerformed(evt);
    private void cutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cutActionPerformed        if (selectedComponent == null)            return;                if (selectedComponent instanceof JTextField)            ((JTextField)selectedComponent).cut();        else if (selectedComponent instanceof JList) {            StringSelection path = new StringSelection(buildSelectPath((JList)selectedComponent));            Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();            cb.setContents(path, path);                    }    }//GEN-LAST:event_cutActionPerformed