Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. package application;
  2.  
  3. import javafx.application.Application;
  4.  
  5. import javafx.stage.Stage;
  6.  
  7. import javafx.scene.Scene;
  8.  
  9. import javafx.scene.layout.BorderPane;
  10.  
  11.  
  12. public class Main extends Application {
  13.  
  14. @Override
  15. public void start(Stage primaryStage) {
  16. try {
  17. BorderPane root = new BorderPane();
  18. Scene scene = new Scene(root,400,400);
  19.  
  20. scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());
  21.  
  22. primaryStage.setScene(scene);
  23. primaryStage.show();
  24. } catch(Exception e) {
  25. e.printStackTrace();
  26. }
  27. }
  28.  
  29. public static void main(String[] args) {
  30. launch(args);
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement