Browse Source

Gui eingebunden

featureVokabelKartenSchreiber
Christian Baltzer 5 years ago
parent
commit
b2e229d350
  1. 5
      src/main/java/com/ugsbo/gui/BasicGuiController.java
  2. 6
      src/main/java/com/ugsbo/gui/MainApp.java

5
src/main/java/com/ugsbo/gui/BasicGuiController.java

@ -9,7 +9,7 @@ public class BasicGuiController {
@FXML @FXML
private Button app1; //Fuer ToDoManager. private Button app1; //Fuer ToDoManager.
@FXML @FXML
private Button app2;
private Button app2; //Fuer VokabelKartenSchreiber
@FXML @FXML
private Button app3; private Button app3;
@FXML @FXML
@ -33,7 +33,8 @@ public class BasicGuiController {
System.out.println(event); System.out.println(event);
}); });
app2.setOnMouseClicked((event) -> { app2.setOnMouseClicked((event) -> {
System.out.println(event);
//System.out.println(event);
MainApp.startVokabelKartenSchreiber();
}); });
app3.setOnMouseClicked((event) -> { app3.setOnMouseClicked((event) -> {
System.out.println(event); System.out.println(event);

6
src/main/java/com/ugsbo/gui/MainApp.java

@ -58,4 +58,10 @@ public class MainApp extends Application {
} }
stage.show(); stage.show();
} }
public static void startVokabelKartenSchreiber(){
Stage stage = new Stage();
MainApp main = new MainApp();
main.createStageFromFXML(stage, "Voabelkartenschreiber");
}
} }
Loading…
Cancel
Save