Fixed MainApplication

This commit is contained in:
Marco Kühn 2022-01-18 12:51:53 +01:00
parent f649b618cf
commit 3c0ebd24d7

View File

@ -12,13 +12,13 @@ import java.util.Objects;
public class MainApplication extends Application { public class MainApplication extends Application {
@Override @Override
public void start(Stage stage) throws IOException { public void start(Stage stage) throws IOException {
//wieder ändern zu main-view.fxml
FXMLLoader fxmlLoader = new FXMLLoader(MainApplication.class.getResource("../users/create-user.fxml")); FXMLLoader fxmlLoader = new FXMLLoader(MainApplication.class.getResource("main-view.fxml"));
Scene scene = new Scene(fxmlLoader.load(), 1200, 700); Scene scene = new Scene(fxmlLoader.load(), 1200, 700);
scene.getStylesheets().add(Objects.requireNonNull( scene.getStylesheets().add(Objects.requireNonNull(
//wieder ändern zu main-view.css
MainApplication.class.getResource("../users/create-user.css")).toExternalForm()); MainApplication.class.getResource("main-view.css")).toExternalForm());
stage.setTitle("SharePlaner"); stage.setTitle("SharePlaner");
stage.setScene(scene); stage.setScene(scene);
//wieder löschen //wieder löschen