001package ca.bc.webarts.javaFX;
002
003import javafx.application.Application;
004import javafx.fxml.FXMLLoader;
005import javafx.scene.Parent;
006import javafx.scene.Scene;
007import javafx.stage.Stage;
008
009public class FXMLExample extends Application {
010
011                public static void main(String[] args)
012                {
013                                Application.launch(FXMLExample.class, args);
014                }
015
016                @Override
017                public void start(Stage stage) throws Exception
018                {
019                                Parent root = FXMLLoader.load(getClass().getResource("fxml_example.fxml"));
020
021                                stage.setTitle("FXML Welcome");
022                                stage.setScene(new Scene(root, 300, 275));
023                                stage.show();
024                }
025}