'Config' -> 'Settings'
This commit is contained in:
parent
52f7369a10
commit
3a45ca7ce2
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user