Skip to content

Commit 17f96b4

Browse files
Merge pull request #5682 from kwvanderlinde/bugfix/connect-to-server-dialog
Make the Connect to Server dialog modal
2 parents d6cbcfa + 57b1bbb commit 17f96b4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/net/rptools/maptool/client/ui/connecttoserverdialog/ConnectToServerDialog.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import javax.swing.ListSelectionModel;
3636
import javax.swing.SwingUtilities;
3737
import javax.swing.SwingWorker;
38+
import javax.swing.WindowConstants;
3839
import javax.swing.table.AbstractTableModel;
3940
import javax.swing.table.DefaultTableCellRenderer;
4041
import javax.swing.table.TableColumn;
@@ -58,7 +59,9 @@ public class ConnectToServerDialog extends AbeillePanel<ConnectToServerDialogPre
5859
GenericDialog.getFactory()
5960
.setDialogTitle(I18N.getText("ConnectToServerDialog.msg.title"))
6061
.createOkCancelButtons()
61-
.setDefaultButton(ButtonKind.OK);
62+
.setDefaultButton(ButtonKind.OK)
63+
.makeModal(true)
64+
.setCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
6265
private RemoteServerConfig connectionDetails = null;
6366

6467
/** This is the default constructor */

0 commit comments

Comments
 (0)