-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
23 lines (22 loc) · 769 Bytes
/
Main.java
File metadata and controls
23 lines (22 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.company;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
public static Stage window;
//public static Scene second_scene;
@Override
public void start(Stage PrimaryStage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("Design.fxml"));
window = PrimaryStage;
window.setTitle("Weather"); //programme name
window.setScene(new Scene(root, 273, 400)); //set new scene uploaded from FXML folder
window.setResizable(false);
window.show();
}
public static void main(String[] args) {
Application.launch(args);
}
}