Source of JavaFXApp.java


  1: import javafx.application.Application;
  2: import javafx.fxml.FXMLLoader;
  3: import javafx.scene.Parent;
  4: import javafx.scene.Scene;
  5: import javafx.stage.Stage;
  6: 
  7: public class JavaFXApp extends Application
  8: {
  9:     @Override
 10:     public void start(Stage stage) throws Exception
 11:     {
 12:         Parent root = FXMLLoader.load
 13:                 (getClass().getResource
 14:                 ("FXMLDocument.fxml"));
 15:         Scene scene = new Scene(root);
 16:         stage.setScene(scene);
 17:         stage.show();
 18:     }
 19: 
 20:     public static void main(String[] args) {
 21:         launch(args);
 22:     }
 23: }