ParetSence

This commit is contained in:
2023-01-17 22:30:56 +01:00
parent 3bb141fb52
commit 400ffb0e98
3 changed files with 31 additions and 9 deletions

View File

@@ -2,6 +2,7 @@ package com.bib.essensbestellungsverwaltung;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
@@ -9,17 +10,17 @@ import java.io.IOException;
public class HelloApplication extends Application {
@Override
public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml"));
public void start(Stage primaryStage) throws IOException {
Parent fxmlStartSeiteLoader = FXMLLoader.load(HelloApplication.class.getResource("menue-view.fxml"));
/**
* @autor: Reshad Meher
* @author: Reshad Meher
* Fenstergrößer
* Fenstertitle
*/
Scene scene = new Scene(fxmlLoader.load(), 480, 280);
stage.setTitle("Essen Bestellung im Kindergarten");
stage.setScene(scene);
stage.show();
primaryStage.setTitle("Essen Bestellung im Kindergarten");
primaryStage.setScene(new Scene(fxmlStartSeiteLoader,950,480));
primaryStage.show();
}
public static void main(String[] args) {

View File

@@ -1,4 +1,25 @@
/**
* Author: Reshad Meher
* Startseite
* fxml: menue-view.fxml
*/
package com.bib.essensbestellungsverwaltung;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.stage.Stage;
import java.io.IOException;
public class MenueController {
@FXML
private void onBtLoginClick(){
Alert alert = new Alert(Alert.AlertType.ERROR, "Hi");
alert.showAndWait();
}
}