}// GEN-LAST:event_menuPlanetsXMLActionPerformed
private void jButtonNewProfileActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButtonNewProfileActionPerformed
final NewProfileAction newProfileAction = new NewProfileAction(droidContext, profileManager, jProfilesTabbedPane);
newProfileAction.addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
if (STATE.equals(evt.getPropertyName()) && evt.getNewValue().equals(SwingWorker.StateValue.DONE)) {
exitListeners.remove(newProfileAction);
}
}
});
exitListeners.add(newProfileAction);
try {
newProfileAction.init(new ProfileForm(this, droidContext, buttonManager));
newProfileAction.execute();
} catch (ProfileManagerException e) {
DialogUtils.showGeneralErrorDialog(this, ERROR_TITLE, e.getMessage());
}
}// GEN-LAST:event_jButtonNewProfileActionPerformed