Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Jose Meneses
Added: Aug 28, 2020 1:27 PM
Views: 44
Tags: no tags
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package javaapplication4;
  7.  
  8. import javafx.application.Application;
  9. import javafx.fxml.FXMLLoader;
  10. import javafx.scene.Parent;
  11. import javafx.scene.Scene;
  12. import javafx.stage.Stage;
  13. /**
  14.  *
  15.  * @author Jose Meneses
  16.  */
  17. public class JavaApplication4 extends Application{
  18.  
  19.     @Override
  20.     public void start(Stage primaryStage) throws Exception {
  21.         Parent root = FXMLLoader.load(getClass().getResource("Principal.fxml"));
  22.         primaryStage.setTitle("Hello World");
  23.         primaryStage.setScene(new Scene(root));
  24.         primaryStage.show();
  25.     }
  26.    
  27.     /**
  28.      * @param args the command line arguments
  29.      */
  30.     public static void main(String[] args) {
  31.         launch(args);
  32.     }
  33.  
  34.    
  35.    
  36. }
  37.