-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWeb.java
More file actions
23 lines (20 loc) · 717 Bytes
/
Web.java
File metadata and controls
23 lines (20 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Web extends Application {
public static void main(String[] args) throws Exception {
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("Scene.fxml"));
Scene scene = new Scene(root);
String css = this.getClass().getResource("styleSheet.css").toExternalForm();
scene.getStylesheets().add(css);
primaryStage.setTitle("Program");
primaryStage.setScene(scene);
primaryStage.show();
}
}