*
* @param alignPanel
* @param seqs
+ * one or more Sequence if create is true; a singleton if create is
+ * false
* @param feats
+ * a list of new SequenceFeature instances if create is true,
+ * otherwise a list of known features for this sequence at this
+ * position
* @param create
* if true create a new feature, else amend or delete an existing
* feature
updateColourButton(mainPanel, colour, featureColour);
};
};
- JalviewColourChooser.showColourChooser(Desktop.getDesktop(),
+ JalviewColourChooser.showColourChooser(Desktop.getDesktopPane(),
title, featureColour.getColour(), listener);
}
else
* set dialog action handlers for OK (create/Amend) and Cancel options
* also for Delete if applicable (when amending features)
*/
- JvOptionPane dialog = JvOptionPane.newOptionDialog(Desktop.desktop)
+ JvOptionPane dialog = JvOptionPane.newOptionDialog(Desktop.getDesktopPane())
.setResponseHandler(0, okAction).setResponseHandler(2, cancelAction);
if (!forCreate)
{
{
boolean useLastDefaults = features.get(0).getType() == null;
+ @Override
public void run()
{
final String enteredType = name.getText().trim();
{
Runnable deleteAction = new Runnable()
{
+ @Override
public void run()
{
SequenceFeature sf = features.get(featureIndex);
String featureGroup = group.getText();
+ @Override
public void run()
{
final String enteredType = name.getText().trim();