Ultra Geile Studenten Benutzer Oberfläche (UGSBO)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. package com.ugsbo.gui;
  2. import javafx.fxml.FXML;
  3. import javafx.scene.control.*;
  4. public class BasicGuiController {
  5. // Hier werden die fx:id Attribute verknuepft.
  6. @FXML
  7. private Button matrixCalc;
  8. @FXML
  9. private Button app2; //Fuer VokabelKartenSchreiber
  10. @FXML
  11. private Button app3;
  12. @FXML
  13. private Button app4;
  14. /**
  15. * Konstructor is called before initialize()
  16. */
  17. public BasicGuiController() {
  18. // Setup of some Fields could be defined here.
  19. }
  20. /**
  21. * Initializes the controller class. This method is automatically called after
  22. * the fxml file has been loaded.
  23. */
  24. @FXML
  25. public void initialize() {
  26. matrixCalc.setOnMouseClicked((event) -> {
  27. MainApp.startMatrixCalcGUI();
  28. // System.out.println(event);
  29. });
  30. app2.setOnMouseClicked((event) -> {
  31. //System.out.println(event);
  32. MainApp.startVokabelKartenSchreiber();
  33. });
  34. app3.setOnMouseClicked((event) -> {
  35. System.out.println(event);
  36. });
  37. app4.setOnMouseClicked((event) -> {
  38. System.out.println(event);
  39. });
  40. }
  41. }