/* * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. */ package helloworld; import java.util.logging.Level; import java.util.logging.Logger; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; /** * * @author jcambon */ public class TestFxml extends Application { /** * @param args the command line arguments */ public static void main(String[] args) { Application.launch(TestFxml.class, (java.lang.String[])null); } @Override public void start(Stage primaryStage) { try { Parent page = (Parent) FXMLLoader.load(TestFxml.class.getResource("Inspector.fxml")); Scene scene = new Scene(page); primaryStage.setScene(scene); primaryStage.setTitle("test FXML"); primaryStage.show(); } catch (Exception ex) { Logger.getLogger(TestFxml.class.getName()).log(Level.SEVERE, null, ex); } } }