diff options
author | Simon Rettberg | 2016-01-29 11:03:52 +0100 |
---|---|---|
committer | Simon Rettberg | 2016-01-29 11:03:52 +0100 |
commit | 7d81da615f089f06ba81c2cc2b67bc3ff4def957 (patch) | |
tree | 2d8cad390cbe7937b51a6f1b4693f8a5e6ed0d25 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/SatelliteListWindowLayout.java | |
parent | [client] Minor tweaks to image details window (diff) | |
download | tutor-module-7d81da615f089f06ba81c2cc2b67bc3ff4def957.tar.gz tutor-module-7d81da615f089f06ba81c2cc2b67bc3ff4def957.tar.xz tutor-module-7d81da615f089f06ba81c2cc2b67bc3ff4def957.zip |
[client] Sanitize coding style/conventions in GUI classes
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 |