Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.10 KB | None | 0 0
  1. package sample;
  2.  
  3. import javafx.application.Application;
  4. import javafx.fxml.FXMLLoader;
  5. import javafx.geometry.Insets;
  6. import javafx.scene.Parent;
  7. import javafx.scene.Scene;
  8. import javafx.scene.control.Button;
  9. import javafx.scene.control.Label;
  10. import javafx.scene.control.TextField;
  11. import javafx.scene.layout.AnchorPane;
  12. import javafx.scene.layout.GridPane;
  13. import javafx.scene.layout.VBox;
  14. import javafx.stage.Stage;
  15.  
  16. import java.util.ArrayList;
  17. import java.util.List;
  18.  
  19. import javafx.application.Application;
  20. import javafx.fxml.FXMLLoader;
  21. import javafx.scene.Parent;
  22. import javafx.scene.Scene;
  23. import javafx.stage.Stage;
  24.  
  25. /**
  26.  *
  27.  * @author Phil
  28.  */
  29. public class Main extends Application {
  30.  
  31.     @Override
  32.     public void start(Stage stage) throws Exception {
  33.         Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
  34.  
  35.         Scene scene = new Scene(root);
  36.         stage.setScene(scene);
  37.         stage.show();
  38.     }
  39.  
  40.     /**
  41.      * @param args the command line arguments
  42.      */
  43.     public static void main(String[] args) {
  44.         launch(args);
  45.     }
  46.  
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement