-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.java
34 lines (27 loc) · 986 Bytes
/
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
// TODO: redenumeste metoda handleEnter in handleKey (si in SceneBuilder) + ultimele verificari inainte de GitHub
package application;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.image.Image;
public class Main extends Application {
@Override
public void start(Stage primaryStage) {
try {
FXMLLoader loader = new FXMLLoader();
loader.setLocation(Main.class.getResource("view/TaylorLayout.fxml"));
Scene scene = new Scene(loader.load());
scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());
primaryStage.setTitle("Taylor Approximation");
primaryStage.getIcons().add(new Image("resources/favicon.jpg"));
primaryStage.setScene(scene);
primaryStage.show();
} catch(Exception e) {
e.printStackTrace();
}
}
public static void main(String[] args) {
launch(args);
}
}