This commit is contained in:
2024-05-27 11:46:04 +02:00
parent 8025de69a9
commit 99ce3b378b
7 changed files with 211 additions and 28 deletions

View File

@ -20,15 +20,12 @@ public class CreateWindow extends Application {
@Override
public void start(Stage primaryStage) throws IOException{
public void start(Stage primaryStage) throws IOException {
DataRegister.initDataRegister();
table = Table.refresh();
FXMLLoader codewindow = new FXMLLoader(CreateWindow.class.getResource("frontend.fxml"));
Parent code = codewindow.load();
grid.add(table, 1, 1);
grid.add(code, 0, 1);
@ -41,19 +38,15 @@ public class CreateWindow extends Application {
primaryStage.show();
}
static void main(String[] args) {
public static void main(String[] args) {
launch(args);
}
public static void refreshTable(Stage stage) throws IOException {
public static void refreshTable(Stage stage) {
grid.getChildren().remove(table);
table= Table.refresh();
grid.add(table, 1, 1);
}
}