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.

38 lines
1.1 KiB

  1. package com.ugsbo.matrixcalc;
  2. import javafx.fxml.FXML;
  3. import javafx.scene.control.*;
  4. import javafx.scene.text.Text;
  5. public class MatrixCalcController {
  6. // Hier werden die fx:id Attribute verknuepft.
  7. @FXML
  8. private Button multiplyButton, addButton, swapInputButton, substractButton, transposeButton;
  9. @FXML
  10. private Text errorText, outputText;
  11. @FXML
  12. private TextArea matrixATextArea, matrixBTextArea;
  13. /**
  14. * Konstructor is called before initialize()
  15. */
  16. public MatrixCalcController() {
  17. // Setup of some Fields could be defined here.
  18. }
  19. /**
  20. * Initializes the controller class. This method is automatically called after
  21. * the fxml file has been loaded.
  22. */
  23. @FXML
  24. public void initialize() {
  25. multiplyButton.setOnMouseClicked((event) -> {
  26. // TODO matrixATextArea and matrixBTextArea need to be parsed to double[][] do
  27. // this in an extern Methode maybe an extern class.
  28. // MatrixCalcMath math = new MatrixCalcMath();
  29. // math.matrixMultiplication(matrixATextArea, matrixATextArea);
  30. System.out.println(event);
  31. });
  32. }
  33. }