From 3a45ca7ce217322f67479feb1fa620376783f4d0 Mon Sep 17 00:00:00 2001 From: Nathan McRae Date: Sun, 29 Dec 2024 12:42:34 -0800 Subject: [PATCH] 'Config' -> 'Settings' --- .../nathanmcrae/NumbersStationController.java | 16 ++++++++-------- ....fxml => NumbersStationListenerSettings.fxml} | 0 ...onConfig.fxml => NumbersStationSettings.fxml} | 0 3 files changed, 8 insertions(+), 8 deletions(-) rename src/main/java/name/nathanmcrae/{NumbersStationListenerConfig.fxml => NumbersStationListenerSettings.fxml} (100%) rename src/main/java/name/nathanmcrae/{NumbersStationConfig.fxml => NumbersStationSettings.fxml} (100%) diff --git a/src/main/java/name/nathanmcrae/NumbersStationController.java b/src/main/java/name/nathanmcrae/NumbersStationController.java index b46b959..6818eab 100644 --- a/src/main/java/name/nathanmcrae/NumbersStationController.java +++ b/src/main/java/name/nathanmcrae/NumbersStationController.java @@ -15,7 +15,7 @@ import java.net.URL; import java.util.ResourceBundle; public class NumbersStationController implements Initializable { - private Stage configStage; + private Stage settingsStage; @FXML private Label lastRetrievedLabel; @@ -28,19 +28,19 @@ public class NumbersStationController implements Initializable { System.out.println("Button pressed!"); lastRetrievedLabel.setText("Button pressed!"); - if (configStage == null || !configStage.isShowing()) { + if (settingsStage == null || !settingsStage.isShowing()) { try { - FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("NumbersStationConfig.fxml")); + FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("NumbersStationSettings.fxml")); Parent root = fxmlLoader.load(); - configStage = new Stage(); - configStage.setTitle("Numbers Station Config"); - configStage.setScene(new Scene(root)); - configStage.show(); + settingsStage = new Stage(); + settingsStage.setTitle("Numbers Station Settings"); + settingsStage.setScene(new Scene(root)); + settingsStage.show(); } catch (Exception e) { e.printStackTrace(); } } else { - configStage.toFront(); + settingsStage.toFront(); } } diff --git a/src/main/java/name/nathanmcrae/NumbersStationListenerConfig.fxml b/src/main/java/name/nathanmcrae/NumbersStationListenerSettings.fxml similarity index 100% rename from src/main/java/name/nathanmcrae/NumbersStationListenerConfig.fxml rename to src/main/java/name/nathanmcrae/NumbersStationListenerSettings.fxml diff --git a/src/main/java/name/nathanmcrae/NumbersStationConfig.fxml b/src/main/java/name/nathanmcrae/NumbersStationSettings.fxml similarity index 100% rename from src/main/java/name/nathanmcrae/NumbersStationConfig.fxml rename to src/main/java/name/nathanmcrae/NumbersStationSettings.fxml