blob: 9481abef8f99a78f4a08f00665f910502c43ed48 (
plain)
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
35
36
37
38
39
40
41
42
43
44
|
package de.fhswf.in.inf.se.notepadMinusMinus;
import de.fhswf.in.inf.se.notepadMinusMinus.model.Grade;
import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
public class Main extends Application
{
private ObservableList<Grade> gradeList = FXCollections
.observableArrayList();
@Override
public void start(Stage primaryStage)
{
try
{
BorderPane root = (BorderPane) FXMLLoader
.load(getClass().getResource("view/mainView.fxml"));
Scene scene = new Scene(root);
primaryStage.setScene(scene);
primaryStage.setMaximized(true);
primaryStage.show();
}
catch (Exception e)
{
e.printStackTrace();
}
}
public static void main(String[] args)
{
launch(args);
}
public ObservableList<Grade> getGradeList()
{
return gradeList;
}
}
|