Added GUI backbone (login and redirect to main stage)

This commit is contained in:
Sem van der Hoeven
2019-03-04 09:37:21 +01:00
parent 57bc183d40
commit 30e421d367
27 changed files with 463 additions and 36 deletions

29
src/GUI/GUIMain.java Normal file
View File

@@ -0,0 +1,29 @@
package GUI;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class GUIMain extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception {
//link fxml file
Parent root = FXMLLoader.load(getClass().getResource("Login.fxml"));
//set the scene
Scene scene = new Scene(root, 400, 400);
//link the stylesheet with the scene
scene.getStylesheets().add(getClass().getResource("LoginStyle.css").toExternalForm());
//show the stagw
primaryStage.setScene(scene);
primaryStage.setTitle("login");
primaryStage.show();
}
}