*/
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 java.util.concurrent.Callable;
import java.util.concurrent.atomic.AtomicBoolean;
import javax.swing.BorderFactory;
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")
*
* @param action
*/
- public void setResponseAction(RunResponse action)
+ public void setResponseAction(Object response, Callable action)
{
- dialog.response(action);
+ dialog.setResponseHandler(response, action);
}
/**