44 lines
1.2 KiB
Java
Raw Normal View History

2023-01-18 22:32:38 +01:00
/**
* @autor: Reshad Meher
* Fenstergrößer
* Fenstertitle
*/
2022-11-15 14:26:06 +01:00
package com.bib.essensbestellungsverwaltung;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
2023-01-31 07:41:21 +01:00
import javafx.scene.Parent;
2022-11-15 14:26:06 +01:00
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
public class StartViewApplication extends Application {
2023-01-18 22:32:38 +01:00
public static Stage primary;
2023-01-31 07:41:21 +01:00
2022-11-15 14:26:06 +01:00
@Override
2023-01-18 02:41:25 +01:00
public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(StartViewApplication.class.getResource("login-view.fxml"));
2023-01-31 07:41:21 +01:00
Scene scene = new Scene(fxmlLoader.load(), 1200, 750);
2023-01-31 06:01:53 +01:00
primary = stage;
2023-01-18 02:41:25 +01:00
stage.setTitle("Essen Bestellung im Kindergarten");
stage.setScene(scene);
stage.show();
2023-01-18 22:32:38 +01:00
2022-11-15 14:26:06 +01:00
}
public static void main(String[] args) {
2022-12-13 03:35:52 +01:00
Database.init();
2022-12-12 14:03:49 +01:00
Database.createDb();
2023-01-17 08:47:09 +01:00
Database.fillDb();
//Database.printSampleQuery();
2022-12-15 09:26:08 +01:00
//Database.deleteSample();
2022-11-15 14:26:06 +01:00
launch();
}
2023-01-31 07:41:21 +01:00
public static void changeScene(String scene) throws IOException {
Parent p = FXMLLoader.load(StartViewApplication.class.getResource(scene));
primary.getScene().setRoot(p);
}
2022-11-15 14:26:06 +01:00
}