Skip to content
Snippets Groups Projects
Commit 978e8693 authored by Haverinen Elias Viljami's avatar Haverinen Elias Viljami
Browse files

luotu modulet

parent 932a7b70
No related branches found
No related tags found
No related merge requests found
package fxVuororekisteri;
/**
* @author elias
* @version 21.1.2025
*/
public class VuororekisteriGUIController {
// TODO
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.layout.BorderPane?>
<BorderPane xmlns:fx="http://javafx.com/fxml/1" fx:controller="fxVuororekisteri.VuororekisteriGUIController">
<!-- TODO Add Nodes -->
</BorderPane>
package fxVuororekisteri;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.fxml.FXMLLoader;
/**
* @author elias
* @version 21.1.2025
*/
public class VuororekisteriMain extends Application {
@Override
public void start(Stage primaryStage) {
try {
FXMLLoader ldr = new FXMLLoader(getClass().getResource("VuororekisteriGUIView.fxml"));
final Pane root = ldr.load();
//final VuororekisteriGUIController vuororekisteriCtrl = (VuororekisteriGUIController)ldr.getController();
Scene scene = new Scene(root);
scene.getStylesheets().add(getClass().getResource("vuororekisteri.css").toExternalForm());
primaryStage.setScene(scene);
primaryStage.setTitle("Vuororekisteri");
primaryStage.show();
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* @param args Ei käytössä
*/
public static void main(String[] args) {
launch(args);
}
}
\ No newline at end of file
/* JavaFX CSS - Leave this comment until you have at least create one rule which uses -fx-Property */
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment