Advertisement
stevennathaniel

Interface1

Apr 20th, 2016
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.86 KB | None | 0 0
  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 latihan2;
  7.  
  8. import javafx.application.Application;
  9.  
  10. import javafx.fxml.FXMLLoader;
  11.  
  12. import javafx.scene.Parent;
  13.  
  14. import javafx.scene.Scene;
  15.  
  16. import javafx.stage.Stage;
  17.  
  18. /**
  19.  *
  20.  * @author stevennathaniel
  21.  */
  22. public class Interface1 extends Application{
  23.    
  24.    
  25.    
  26.     public void start (Stage stage) throws Exception {
  27.        
  28.         Parent root = FXMLLoader.load(getClass().getResource("FXMLInterface1.fxml"));
  29.        
  30.         Scene scene = new Scene(root);
  31.        
  32.         stage.setScene(scene);
  33.        
  34.         stage.show();
  35.        
  36.     }
  37.    
  38.     public static void main(String[] args){
  39.        
  40.         launch(args);
  41.        
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement