changed the postion of the host server checkbox
moved the checkbox form below the connect button inside the input container for the hostname and port. The checkbox is the lowest seated element in the input container now.
This commit is contained in:
parent
f6bc65471a
commit
05271beded
@@ -53,16 +53,17 @@ class NetworkDialog extends SimpleDialog {
|
|||||||
host.setPreferredWidth(400f);
|
host.setPreferredWidth(400f);
|
||||||
port.setSingleLine(true);
|
port.setSingleLine(true);
|
||||||
|
|
||||||
|
Checkbox serverHost = new Checkbox(lookup("host.own.server"));
|
||||||
|
serverHost.setChecked(false);
|
||||||
|
serverHost.addClickCommands(s -> toggleServerHost());
|
||||||
|
|
||||||
final BattleshipApp app = network.getApp();
|
final BattleshipApp app = network.getApp();
|
||||||
final Container input = new Container(new SpringGridLayout());
|
final Container input = new Container(new SpringGridLayout());
|
||||||
input.addChild(new Label(lookup("host.name") + ": "));
|
input.addChild(new Label(lookup("host.name") + ": "));
|
||||||
input.addChild(host, 1);
|
input.addChild(host, 1);
|
||||||
input.addChild(new Label(lookup("port.number") + ": "));
|
input.addChild(new Label(lookup("port.number") + ": "));
|
||||||
input.addChild(port, 1);
|
input.addChild(port, 1);
|
||||||
|
input.addChild(serverHost);
|
||||||
Checkbox serverHost = new Checkbox(lookup("host.own.server"));
|
|
||||||
serverHost.setChecked(false);
|
|
||||||
serverHost.addClickCommands(s -> toggleServerHost());
|
|
||||||
|
|
||||||
DialogBuilder.simple(app.getDialogManager())
|
DialogBuilder.simple(app.getDialogManager())
|
||||||
.setTitle(lookup("server.dialog"))
|
.setTitle(lookup("server.dialog"))
|
||||||
@@ -72,8 +73,6 @@ class NetworkDialog extends SimpleDialog {
|
|||||||
.setOkClose(false)
|
.setOkClose(false)
|
||||||
.setNoClose(false)
|
.setNoClose(false)
|
||||||
.build(this);
|
.build(this);
|
||||||
|
|
||||||
addChild(serverHost);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user