sg.setName(dialog.getName());
sg.setDescription(dialog.getDescription());
refresh();
- return null;
});
}
{
if (dialog.getName().indexOf(" ") > -1)
{
- JvOptionPane.showMessageDialog(ap,
- MessageManager.getString(
- "label.spaces_converted_to_underscores"),
- MessageManager.getString(
- "label.no_spaces_allowed_sequence_name"),
- JvOptionPane.WARNING_MESSAGE);
+ String ok = MessageManager.getString("action.ok");
+ String cancel = MessageManager.getString("action.cancel");
+ String message = MessageManager.getString(
+ "label.spaces_converted_to_underscores");
+ String title = MessageManager.getString(
+ "label.no_spaces_allowed_sequence_name");
+ Object[] options = new Object[] { ok, cancel };
+
+ JvOptionPane.frameDialog(message, title,
+ JvOptionPane.WARNING_MESSAGE, null, null, null,
+ false);
}
sequence.setName(dialog.getName().replace(' ', '_'));
ap.paintAlignment(false, false);
sequence.setDescription(dialog.getDescription());
ap.av.firePropertyChange("alignment", null,
ap.av.getAlignment().getSequences());
- return null;
});
}
ap.alignFrame.addHistoryItem(editCommand);
ap.av.firePropertyChange("alignment", null,
ap.av.getAlignment().getSequences());
- return null;
});
}
}