-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMain.java
54 lines (34 loc) · 1.16 KB
/
Main.java
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import java.awt.Color;
import static java.lang.Boolean.FALSE;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.Parent;
import javafx.scene.layout.StackPane;
import javafx.scene.control.Button;
import javafx.scene.Parent;
//import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
public class Main extends Application {
@Override
public void start(Stage stage) throws Exception
{
stage.setTitle("StaySafe");
Parent root=FXMLLoader.load(getClass().getResource("SplashUI.fxml"));
//StackPane stk=new StackPane()
stage.initStyle(StageStyle.UNDECORATED);
//Group group = new Group();
Scene scene = new Scene(root, 459, 459);
stage.setScene(scene);
stage.resizableProperty().setValue(FALSE);
stage.show();
}
public static void main(String[] args)
{
Application.launch(args);
}
}