diff options
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/SatelliteListWindowLayout.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/SatelliteListWindowLayout.java | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/SatelliteListWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/SatelliteListWindowLayout.java index dd71352f..bf6d1bc5 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/SatelliteListWindowLayout.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/SatelliteListWindowLayout.java @@ -4,6 +4,7 @@ import java.awt.BorderLayout; import java.awt.Window; import java.util.HashMap; import java.util.List; +import java.util.Map; import javax.swing.BorderFactory; import javax.swing.Box; @@ -22,11 +23,11 @@ import org.openslx.dozmod.gui.helper.GridManager; @SuppressWarnings("serial") public class SatelliteListWindowLayout extends JDialog { - protected final JButton cancelButton; - protected final JButton nextButton; - protected final JTextField customIpField; - protected final JRadioButton radioCustomIp; - protected final HashMap<JRadioButton, Satellite> radioToSat = new HashMap<JRadioButton, Satellite>(); + protected final JButton btnCancel; + protected final JButton btnContinue; + protected final JTextField txtCustomAddress; + protected final JRadioButton rdoCusomAddress; + protected final Map<JRadioButton, Satellite> radioToSat = new HashMap<>(); private static String title = "Satelliten-Server wählen"; @@ -57,11 +58,11 @@ public class SatelliteListWindowLayout extends JDialog { // --------------- custom ip button and field -------------------------------------- selectionPanelGrid.add(new JLabel("Server-Adresse selbst eingeben"), 2); selectionPanelGrid.nextRow(); - radioCustomIp = new JRadioButton(""); - btnGroup.add(radioCustomIp); - customIpField = new JTextField(""); - selectionPanelGrid.add(radioCustomIp).fill(true, false).expand(false, false); - selectionPanelGrid.add(customIpField).fill(true, false).expand(true, false); + rdoCusomAddress = new JRadioButton(""); + btnGroup.add(rdoCusomAddress); + txtCustomAddress = new JTextField(""); + selectionPanelGrid.add(rdoCusomAddress).fill(true, false).expand(false, false); + selectionPanelGrid.add(txtCustomAddress).fill(true, false).expand(true, false); selectionPanelGrid.nextRow(); // --------------- end custom ip field -------------------------------- selectionPanelGrid.finish(false); @@ -70,11 +71,11 @@ public class SatelliteListWindowLayout extends JDialog { JPanel buttonPane = new JPanel(); buttonPane.setLayout(new BoxLayout(buttonPane, BoxLayout.LINE_AXIS)); buttonPane.setBorder(BorderFactory.createEmptyBorder(1, 3, 3, 3)); - cancelButton = new JButton("Abbrechen"); - buttonPane.add(cancelButton); + btnCancel = new JButton("Abbrechen"); + buttonPane.add(btnCancel); buttonPane.add(Box.createHorizontalGlue()); - nextButton = new JButton("Weiter"); - buttonPane.add(nextButton); + btnContinue = new JButton("Weiter"); + buttonPane.add(btnContinue); // --------------- end button panel ---------------------------------- // pack it all |