import jalview.datamodel.SequenceGroup;
import jalview.gui.JalviewColourChooser.ColourChooserListener;
import jalview.util.MessageManager;
+import jalview.util.dialogrunner.RunResponse;
import java.awt.BorderLayout;
import java.awt.Color;
}
});
- int reply = JvOptionPane.showInternalOptionDialog(alignPanel, bigpanel,
- MessageManager.getString(
- "label.adjunst_foreground_text_colour_threshold"),
- JvOptionPane.OK_CANCEL_OPTION, JvOptionPane.QUESTION_MESSAGE,
- null, null, null);
-
- if (reply == JvOptionPane.CANCEL_OPTION)
+ Object[] options = new Object[] { MessageManager.getString("action.ok"),
+ MessageManager.getString("action.cancel") };
+ String title = MessageManager
+ .getString("label.adjunst_foreground_text_colour_threshold");
+ RunResponse action = new RunResponse(JvOptionPane.NO_OPTION) // Cancel
{
- restoreInitialSettings();
- }
+ @Override
+ public void run()
+ {
+ restoreInitialSettings();
+ }
+ };
+ JvOptionPane.newOptionDialog(alignPanel).response(action)
+ .showInternalDialog(bigpanel, title,
+ JvOptionPane.YES_NO_CANCEL_OPTION,
+ JvOptionPane.PLAIN_MESSAGE, null, options,
+ MessageManager.getString("action.ok"));
}
/**
group.textColour2 = groupColour2.get(group);
group.thresholdTextColour = groupThreshold.get(group);
}
+
+ ap.paintAlignment(false, false);
}
/**