- JOptionPane
- .showInternalMessageDialog(
- Desktop.desktop,
- "Service did not pass validation.\nCheck the Jalview Console for more details.");
+ int opt = JvOptionPane.showInternalOptionDialog(Desktop.getDesktopPane(),
+ "The Server '" + foo.toString()
+ + "' failed validation,\ndo you want to add it anyway? ",
+ "Server Validation Failed", JvOptionPane.YES_NO_OPTION,
+ JvOptionPane.INFORMATION_MESSAGE, null, null, null);
+ if (opt == JvOptionPane.YES_OPTION)
+ {
+ return foo.toString();
+ }
+ else
+ {
+ JvOptionPane.showInternalMessageDialog(Desktop.getDesktopPane(),
+ MessageManager.getString(
+ "warn.server_didnt_pass_validation"));
+ }
+