-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPaintApp.java
More file actions
30 lines (24 loc) · 780 Bytes
/
PaintApp.java
File metadata and controls
30 lines (24 loc) · 780 Bytes
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
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class PaintApp extends Application
{
static Stage stage = new Stage();
public void start(Stage stage) throws Exception
{
/**
* opening out FXML file and loding it and setting it as the main stage
*/
Parent root = FXMLLoader.load(getClass().getResource("/MyPaintShop.fxml"));
Scene scene = new Scene(root);
stage.setScene(scene);
stage.setResizable(false);
stage.setTitle("MyPaintShop (PaintTool)");
stage.show();
}
public static void main(String[] args) {
launch(args);
}
}