css + png hinzugefügt
This commit is contained in:
@@ -2,7 +2,6 @@ package com.bib.essensbestellungsverwaltung;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
@@ -10,17 +9,17 @@ import java.io.IOException;
|
||||
|
||||
public class HelloApplication extends Application {
|
||||
@Override
|
||||
public void start(Stage primaryStage) throws IOException {
|
||||
Parent fxmlStartSeiteLoader = FXMLLoader.load(HelloApplication.class.getResource("menue-view.fxml"));
|
||||
public void start(Stage stage) throws IOException {
|
||||
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml"));
|
||||
/**
|
||||
* @author: Reshad Meher
|
||||
* @autor: Reshad Meher
|
||||
* Fenstergrößer
|
||||
* Fenstertitle
|
||||
*/
|
||||
primaryStage.setTitle("Essen Bestellung im Kindergarten");
|
||||
primaryStage.setScene(new Scene(fxmlStartSeiteLoader,950,480));
|
||||
primaryStage.show();
|
||||
|
||||
Scene scene = new Scene(fxmlLoader.load(), 480, 280);
|
||||
stage.setTitle("Essen Bestellung im Kindergarten");
|
||||
stage.setScene(scene);
|
||||
stage.show();
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
@@ -1,4 +0,0 @@
|
||||
package com.bib.essensbestellungsverwaltung;
|
||||
|
||||
public class LaunchController {
|
||||
}
|
@@ -1,24 +1,12 @@
|
||||
package com.bib.essensbestellungsverwaltung;
|
||||
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Objects;
|
||||
|
||||
public class SceneController {
|
||||
private Stage stage;
|
||||
private Scene scene;
|
||||
private Parent root;
|
||||
|
||||
public void switchToLoginScene(ActionEvent event) throws IOException{
|
||||
Parent root = FXMLLoader.load(getClass().getResource("login-view.fxml"));
|
||||
stage = (Stage) ((Node)event.getSource()).getScene().getWindow();
|
||||
scene = new Scene(root);
|
||||
stage.setScene(scene);
|
||||
stage.show();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user