Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. package sample;
  2.  
  3. import javafx.application.Application;
  4. import javafx.fxml.FXMLLoader;
  5. import javafx.scene.Parent;
  6. import javafx.scene.Scene;
  7. import javafx.stage.Stage;
  8.  
  9. public class Main extends Application {
  10.  
  11. @Override
  12. public void start(Stage primaryStage) throws Exception{
  13. Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
  14. primaryStage.setTitle("Hello World");
  15. primaryStage.setScene(new Scene(root));
  16. primaryStage.show();
  17. }
  18.  
  19.  
  20. public static void main(String[] args) {
  21. launch(args);
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement