+
+ /*
+ * options No, Split Window, New Window correspond to
+ * dialog responses 0, 1, 2 (even though JOptionPane shows them
+ * in reverse order)
+ */
+ JvOptionPane dialog = JvOptionPane
+ .newOptionDialog(Desktop.getDesktopPane())
+ .setResponseHandler(NO_SPLIT, new Runnable()
+ {
+ @Override
+ public void run()
+ {
+ addDataToAlignment(al);
+ }
+ }).setResponseHandler(SPLIT_FRAME, new Runnable()
+ {
+ @Override
+ public void run()
+ {
+ openLinkedAlignmentAs(getAlignPanel().alignFrame,
+ new Alignment(getAlignment()), al, title,
+ SPLIT_FRAME);
+ }
+ }).setResponseHandler(NEW_WINDOW, new Runnable()
+ {
+ @Override
+ public void run()
+ {
+ openLinkedAlignmentAs(null, getAlignment(), al, title,
+ NEW_WINDOW);
+ }
+ });
+ dialog.showDialog(question,