Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.univ_amu.iut;
- import javafx.application.Application;
- import javafx.scene.input.KeyCombination;
- import javafx.scene.Scene;
- import javafx.stage.Modality;
- import javafx.stage.Stage;
- public class Main extends Application {
- /**
- * Méthode par défaut
- * @param args
- */
- public static void main(String[] args) {
- Application.launch(args);
- }
- /**
- * Permet de charger la page d'Accueil
- * @param stage
- */
- @Override
- public void start(Stage stage){
- Scene scene = new Scene(new AccueilController());
- stage.setScene(scene);
- stage.setTitle("Seek'n'Play");
- stage.setMaximized(true);
- stage.setFullScreenExitKeyCombination(KeyCombination.NO_MATCH);
- stage.show();
- }
- /**
- * Permet d'afficher les pages souhaitées
- * @param stage
- * @param scene
- */
- public static void startNewPage(Stage stage, Scene scene) {
- //scene.getStylesheets().addAll("/fr/univ_amu/iut/style.css");
- stage.setScene(scene);
- stage.setMaximized(true);
- stage.show();
- }
- /**
- * Permet d'afficher la page Facebook
- * @param stage
- * @param scene
- */
- public static void startNewPage2(Stage stage, Scene scene) {
- stage.initModality(Modality.APPLICATION_MODAL);
- stage.setScene(scene);
- stage.setResizable(false);
- stage.centerOnScreen();
- stage.showAndWait();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement