git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-3594 added BG and UoD logo and banner to splashscreens, and adjusted status text box
[jalview.git]
/
src
/
jalview
/
gui
/
TextColourChooser.java
diff --git
a/src/jalview/gui/TextColourChooser.java
b/src/jalview/gui/TextColourChooser.java
index
86a51ab
..
5d22abb
100644
(file)
--- a/
src/jalview/gui/TextColourChooser.java
+++ b/
src/jalview/gui/TextColourChooser.java
@@
-23,7
+23,6
@@
package jalview.gui;
import jalview.datamodel.SequenceGroup;
import jalview.gui.JalviewColourChooser.ColourChooserListener;
import jalview.util.MessageManager;
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;
import java.awt.BorderLayout;
import java.awt.Color;
@@
-149,8
+148,8
@@
public class TextColourChooser
Object[] options = new Object[] { MessageManager.getString("action.ok"),
MessageManager.getString("action.cancel") };
String title = MessageManager
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
+ .getString("label.adjust_foreground_text_colour_threshold");
+ Runnable action = new Runnable() // response for 1 = Cancel
{
@Override
public void run()
{
@Override
public void run()
@@
-158,7
+157,7
@@
public class TextColourChooser
restoreInitialSettings();
}
};
restoreInitialSettings();
}
};
- JvOptionPane.newOptionDialog(alignPanel).response(action)
+ JvOptionPane.newOptionDialog(alignPanel).setResponseHandler(1, action)
.showInternalDialog(bigpanel, title,
JvOptionPane.YES_NO_CANCEL_OPTION,
JvOptionPane.PLAIN_MESSAGE, null, options,
.showInternalDialog(bigpanel, title,
JvOptionPane.YES_NO_CANCEL_OPTION,
JvOptionPane.PLAIN_MESSAGE, null, options,