3 import javafx.application.Application;
4 import javafx.stage.Stage;
5 import javafx.scene.Scene;
6 import javafx.scene.layout.Pane;
7 import javafx.fxml.FXMLLoader;
16 public void start(Stage primaryStage) {
18 FXMLLoader ldr =
new FXMLLoader(getClass().getResource(
"NimiJaVuosiView.fxml"));
19 final Pane root = ldr.load();
21 Scene scene =
new Scene(root);
22 scene.getStylesheets().add(getClass().getResource(
"nimijavuosi.css").toExternalForm());
23 primaryStage.setScene(scene);
24 primaryStage.setTitle(
"NimiJaVuosi");
26 }
catch(Exception e) {
34 public static void main(String[] args) {