Advertisement
Guest User

Main.java Class

a guest
Nov 13th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. package sample.controllers;
  2.  
  3. import javafx.application.Application;
  4. import javafx.fxml.FXMLLoader;
  5. import javafx.scene.Node;
  6. import javafx.scene.Parent;
  7. import javafx.scene.Scene;
  8. import javafx.stage.Stage;
  9.  
  10. public class Main extends Application {
  11.  
  12.     @Override
  13.     public void start(Stage stage) throws Exception{
  14.         Parent root = FXMLLoader.load(getClass().getResource("/sample/views/register.fxml"));
  15.         Scene scene = new Scene(root);
  16.  
  17.         stage.setScene(scene);
  18.  
  19.         stage.setTitle("PL SQL Yourself!");
  20.  
  21.         stage.show();
  22.     }
  23.  
  24.  
  25.     public static void main(String[] args) {
  26.         launch(args);
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement