Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- public static final String ICON_IMAGE_LOC = "/icons/Message.png";
- @Override
- public void start(Stage primaryStage)
- {
- setStage(primaryStage);
- try
- {
- FXMLLoader loader = new FXMLLoader(this.getClass().getResource("/FXML/Login.fxml"));
- Parent root = loader.load();
- Scene scene = new Scene(root);
- primaryStage.setTitle("Login");
- primaryStage.getIcons().add(new javafx.scene.image.Image(ICON_IMAGE_LOC));
- primaryStage.setScene(scene);
- primaryStage.setResizable(false);
- primaryStage.show();
- }
- catch (IOException e)
- {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- public static void main(String[] args) {
- launch(args);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement