Advertisement
Guest User

Main

a guest
Oct 12th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. package cz.vutbr.feec.bmds.cv4;
  2.    
  3. import javafx.application.Application;
  4. import javafx.fxml.FXMLLoader;
  5. import javafx.stage.Stage;
  6. import javafx.scene.Parent;
  7. import javafx.scene.Scene;
  8.  
  9.  
  10. public class Main extends Application {
  11.    
  12.  
  13.  
  14.     @Override
  15.     public void start(Stage primaryStage) {
  16.         try {
  17.             Parent root = FXMLLoader.load(getClass().getResource("VideoPlayer.fxml"));
  18.             Scene scene = new Scene(root,400,400);         
  19.             primaryStage.setScene(scene);
  20.             primaryStage.show();
  21.         } catch(Exception e) {
  22.             e.printStackTrace();
  23.         }
  24.     }
  25.    
  26.    
  27.     public static void main(String[] args) {
  28.         launch(args);
  29.        
  30.        
  31.        
  32.     }
  33.    
  34.    
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement