SHARE
TWEET

Untitled

a guest Jun 19th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.  
  3. public static final String ICON_IMAGE_LOC = "/icons/Message.png";
  4. @Override
  5.     public void start(Stage primaryStage)
  6.  
  7.     {
  8.         setStage(primaryStage);
  9.  
  10.  
  11.  
  12.         try
  13.  
  14.         {
  15.  
  16.             FXMLLoader loader = new FXMLLoader(this.getClass().getResource("/FXML/Login.fxml"));
  17.             Parent root = loader.load();
  18.  
  19.             Scene scene = new Scene(root);
  20.             primaryStage.setTitle("Login");
  21.             primaryStage.getIcons().add(new javafx.scene.image.Image(ICON_IMAGE_LOC));
  22.             primaryStage.setScene(scene);
  23.             primaryStage.setResizable(false);
  24.  
  25.             primaryStage.show();
  26.  
  27.  
  28.         }
  29.  
  30.         catch (IOException e)
  31.  
  32.         {
  33.             // TODO Auto-generated catch block
  34.             e.printStackTrace();
  35.         }
  36.  
  37.     }
  38.  
  39.     public static void main(String[] args) {
  40.         launch(args);
  41.     }
  42. }
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