'Config' -> 'Settings'

This commit is contained in:
Nathan McRae 2024-12-29 12:42:34 -08:00
parent 52f7369a10
commit 3a45ca7ce2
3 changed files with 8 additions and 8 deletions

View File

@ -15,7 +15,7 @@ import java.net.URL;
import java.util.ResourceBundle; import java.util.ResourceBundle;
public class NumbersStationController implements Initializable { public class NumbersStationController implements Initializable {
private Stage configStage; private Stage settingsStage;
@FXML @FXML
private Label lastRetrievedLabel; private Label lastRetrievedLabel;
@ -28,19 +28,19 @@ public class NumbersStationController implements Initializable {
System.out.println("Button pressed!"); System.out.println("Button pressed!");
lastRetrievedLabel.setText("Button pressed!"); lastRetrievedLabel.setText("Button pressed!");
if (configStage == null || !configStage.isShowing()) { if (settingsStage == null || !settingsStage.isShowing()) {
try { try {
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("NumbersStationConfig.fxml")); FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("NumbersStationSettings.fxml"));
Parent root = fxmlLoader.load(); Parent root = fxmlLoader.load();
configStage = new Stage(); settingsStage = new Stage();
configStage.setTitle("Numbers Station Config"); settingsStage.setTitle("Numbers Station Settings");
configStage.setScene(new Scene(root)); settingsStage.setScene(new Scene(root));
configStage.show(); settingsStage.show();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
} else { } else {
configStage.toFront(); settingsStage.toFront();
} }
} }