SHARE
TWEET

Untitled

a guest Aug 20th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top