-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
40 lines (33 loc) · 1.12 KB
/
Copy pathMain.java
File metadata and controls
40 lines (33 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.ilcapo.framework;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
/*
* @author bar771
*/
public class Main extends Application {
private int width = 366, height = 400;
private Stage primaryStage = null;
@Override
public void start(Stage primaryStage) throws Exception {
this.primaryStage = primaryStage;
Platform.setImplicitExit(false);
primaryStage.setTitle("EncryptYourPorn - 2.0");
primaryStage.getIcons().add(new Image(Main.class.getResourceAsStream("/images/icon.png")));
primaryStage.setScene(new Scene(FXMLLoader.load(getClass().getResource("/windows/mainPage.fxml")), width, height));
primaryStage.setResizable(false);
primaryStage.show();
primaryStage.setOnCloseRequest(e -> {
//Platform.runLater(() -> {});
//primaryStage.hide();
//e.consume();
System.exit(0);
});
}
public static void main(String[] args) {
Application.launch(Main.class, args);
}
}