ParetSence
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user