GT-2891 - Option Dialog - Updated to not build components off the Swing

thread
This commit is contained in:
dragonmacher
2019-05-30 08:44:35 -04:00
parent 1162b27c04
commit 7bc4d9e381
16 changed files with 380 additions and 313 deletions
@@ -85,19 +85,8 @@ public class DefaultClientAuthenticator extends PopupKeyStorePasswordProvider
@Override
public boolean promptForReconnect(final Component parent, final String message) {
final boolean[] retVal = new boolean[] { false };
Runnable r = () -> {
String msg = message;
if (msg != null) {
msg = msg + "\n";
}
msg = msg + "Do you want to reconnect to the server now?";
retVal[0] = OptionDialog.showYesNoDialog(parent, "Lost Connection to Server",
message) == OptionDialog.OPTION_ONE;
};
SystemUtilities.runSwingNow(r);
return retVal[0];
return OptionDialog.showYesNoDialog(parent, "Lost Connection to Server",
message) == OptionDialog.OPTION_ONE;
}
@Override