/**
* Closes a profile.
*/
public void closeProfile() {
CloseProfileAction closeAction = new CloseProfileAction(droidMainUi.getProfileManager(), context, this);
JOptionPaneProxy dialog = new JOptionPaneProxy() {
@Override
public int getResponse() {
int result = JOptionPane.showConfirmDialog(ProfileForm.this, "Save this profile?", "Warning",
JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);