String jarFile = jarNameTextField.getText(); if (!jarFile.equals("")) { Project project = getCurrentProject(); project.addJar(jarFile); DefaultListModel listModel = (DefaultListModel)  jarFileList.getModel(); listModel.addElement(jarFile); jarNameTextField.setText(""); }
    private void addJarButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addJarButtonActionPerformed	// if (!jarTextField.isEmpty()) {	//    Project project = getCurrentProject();	//    String jarFile = jarTextField.getValue();	//    project.addJar(jarFile);	//    jarTextField.clear();	// }    }//GEN-LAST:event_addJarButtonActionPerformed