diff --git a/src/main/java/name/nathanmcrae/NumbersStation.fxml b/src/main/java/name/nathanmcrae/NumbersStation.fxml
index ef4ec15..9dc4220 100644
--- a/src/main/java/name/nathanmcrae/NumbersStation.fxml
+++ b/src/main/java/name/nathanmcrae/NumbersStation.fxml
@@ -55,7 +55,7 @@
-
+
@@ -74,7 +74,7 @@
-
+
diff --git a/src/main/java/name/nathanmcrae/NumbersStationController.java b/src/main/java/name/nathanmcrae/NumbersStationController.java
index 6818eab..4fe7668 100644
--- a/src/main/java/name/nathanmcrae/NumbersStationController.java
+++ b/src/main/java/name/nathanmcrae/NumbersStationController.java
@@ -17,6 +17,8 @@ import java.util.ResourceBundle;
public class NumbersStationController implements Initializable {
private Stage settingsStage;
+ private Stage selectStationStage;
+
@FXML
private Label lastRetrievedLabel;
@@ -24,7 +26,7 @@ public class NumbersStationController implements Initializable {
private TextArea messageTextArea;
@FXML
- private void handleButtonPress() {
+ private void handleSettingsButtonPress() {
System.out.println("Button pressed!");
lastRetrievedLabel.setText("Button pressed!");
@@ -44,6 +46,24 @@ public class NumbersStationController implements Initializable {
}
}
+ @FXML
+ private void handleSelectStationButtonPress() {
+ if (selectStationStage == null || !selectStationStage.isShowing()) {
+ try {
+ FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("NumbersStationSelection.fxml"));
+ Parent root = fxmlLoader.load();
+ selectStationStage = new Stage();
+ selectStationStage.setTitle("Numbers Station Selection");
+ selectStationStage.setScene(new Scene(root));
+ selectStationStage.show();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ } else {
+ selectStationStage.toFront();
+ }
+ }
+
@Override
public void initialize(URL location, ResourceBundle resources) {
messageTextArea.addEventFilter(KeyEvent.ANY, event -> {
diff --git a/src/main/java/name/nathanmcrae/NumbersStationSelection.fxml b/src/main/java/name/nathanmcrae/NumbersStationSelection.fxml
new file mode 100644
index 0000000..29ca0d1
--- /dev/null
+++ b/src/main/java/name/nathanmcrae/NumbersStationSelection.fxml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+