12345678910111213141516171819202122232425 |
- package app.insa.clav;
-
- import javafx.application.Application;
- import javafx.fxml.FXMLLoader;
- import javafx.scene.Parent;
- import javafx.scene.Scene;
- import javafx.stage.Stage;
-
- public class Main extends Application {
-
- @Override
- public void start(Stage primaryStage) throws Exception{
- FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/fxml/sample.fxml"));
- fxmlLoader.setController(ctrl); //mettre object controlleur ici
- Parent root =fxmlLoader.load();
- primaryStage.setTitle("Hello World");
- primaryStage.setScene(new Scene(root, 300, 275));
- primaryStage.show();
- }
-
-
- public static void main(String[] args) {
- launch(args);
- }
- }
|