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.
39 lines
1.1 KiB
39 lines
1.1 KiB
package com.ugsbo.matrixcalc;
|
|
|
|
import javafx.fxml.FXML;
|
|
import javafx.scene.control.*;
|
|
import javafx.scene.text.Text;
|
|
|
|
public class MatrixCalcController {
|
|
|
|
// Hier werden die fx:id Attribute verknuepft.
|
|
@FXML
|
|
private Button multiplyButton, addButton, swapInputButton, substractButton, transposeButton;
|
|
@FXML
|
|
private Text errorText, outputText;
|
|
@FXML
|
|
private TextArea matrixATextArea, matrixBTextArea;
|
|
|
|
/**
|
|
* Konstructor is called before initialize()
|
|
*/
|
|
public MatrixCalcController() {
|
|
// Setup of some Fields could be defined here.
|
|
}
|
|
|
|
/**
|
|
* Initializes the controller class. This method is automatically called after
|
|
* the fxml file has been loaded.
|
|
*/
|
|
@FXML
|
|
public void initialize() {
|
|
multiplyButton.setOnMouseClicked((event) -> {
|
|
// TODO matrixATextArea and matrixBTextArea need to be parsed to double[][] do
|
|
// this in an extern Methode maybe an extern class.
|
|
// MatrixCalcMath math = new MatrixCalcMath();
|
|
// math.matrixMultiplication(matrixATextArea, matrixATextArea);
|
|
System.out.println(event);
|
|
});
|
|
}
|
|
|
|
}
|