summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/SatelliteListWindow.java
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/SatelliteListWindow.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/SatelliteListWindow.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/SatelliteListWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/SatelliteListWindow.java
index c71b2d0e..e3f68295 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/SatelliteListWindow.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/SatelliteListWindow.java
@@ -50,6 +50,19 @@ public class SatelliteListWindow extends SatelliteListWindowLayout implements Ui
}
}
};
+
+ // deactivate the custom field when selecting a satellite to make things clearer for user
+ ActionListener listener = new ActionListener() {
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ txtCustomAddress.setEnabled(rdoCusomAddress.isSelected());
+ }
+ };
+ for (JRadioButton radio : radioToSat.keySet()) {
+ radio.addActionListener(listener);
+ }
+ rdoCusomAddress.addActionListener(listener);
+
// Check, whether we have any satellites
String lastSat = Config.getLastSatellite();
if (satList != null && !satList.isEmpty()) {
@@ -75,19 +88,6 @@ public class SatelliteListWindow extends SatelliteListWindowLayout implements Ui
txtCustomAddress.requestFocus();
}
- // deactivate the custom field when selecting a satellite to make things clearer for user
- ActionListener listener = new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- txtCustomAddress.setEnabled(rdoCusomAddress.isSelected());
- }
- };
- for (JRadioButton radio : radioToSat.keySet()) {
- radio.addActionListener(listener);
- }
- rdoCusomAddress.addActionListener(listener);
- txtCustomAddress.setEnabled(false);
-
// Cancel button
btnCancel.addActionListener(new ActionListener() {
@Override