*/
package jalview.gui;
-import jalview.bin.Cache;
-import jalview.util.MessageManager;
-import jalview.util.dialogrunner.RunResponse;
-
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
+import jalview.bin.Cache;
+import jalview.util.MessageManager;
+
/**
* A dialog where the user may choose Text or Lineart rendering, and optionally
* save this as a preference ("Don't ask me again")
*/
public class LineartOptions extends JPanel
{
- static final String PROMPT_EACH_TIME = "Prompt each time";
+ public static final String PROMPT_EACH_TIME = "Prompt each time";
JvOptionPane dialog;
*
* @param action
*/
- public void setResponseAction(RunResponse action)
+ public void setResponseAction(Object response, Runnable action)
{
- dialog.addResponse(action);
+ dialog.setResponseHandler(response, action);
}
/**