- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
Latest commit
23 lines (18 loc) · 583 Bytes
/
Copy pathMain.java
File metadata and controls
23 lines (18 loc) · 583 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
packagesample;
importjavafx.application.Application;
importjavafx.fxml.FXMLLoader;
importjavafx.scene.Parent;
importjavafx.scene.Scene;
importjavafx.stage.Stage;
publicclassMainextendsApplication {
@Override
publicvoidstart(StageprimaryStage) throwsException {
Parentroot = FXMLLoader.load(getClass().getResource("sample.fxml"));
primaryStage.setTitle("Slider Example");
primaryStage.setScene(newScene(root, 500, 500));
primaryStage.show();
}
publicstaticvoidmain(String[] args) {
launch(args);
}
}