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

ikkunat lisätty, pitää vielä muokata oikean näköiseksi

parent 4b0e6195
No related branches found
No related tags found
No related merge requests found
package fxLajinLisays;
/**
* @author elias
* @version 28.1.2025
*/
public class LajinLisaysGUIController {
// 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="fxLajinLisays.LajinLisaysGUIController">
<!-- TODO Add Nodes -->
</BorderPane>
package fxLajinLisays;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.fxml.FXMLLoader;
/**
* @author elias
* @version 28.1.2025
*/
public class LajinLisaysMain extends Application {
@Override
public void start(Stage primaryStage) {
try {
FXMLLoader ldr = new FXMLLoader(getClass().getResource("LajinLisaysGUIView.fxml"));
final Pane root = ldr.load();
//final LajinLisaysGUIController lajinlisaysCtrl = (LajinLisaysGUIController)ldr.getController();
Scene scene = new Scene(root);
scene.getStylesheets().add(getClass().getResource("lajinlisays.css").toExternalForm());
primaryStage.setScene(scene);
primaryStage.setTitle("LajinLisays");
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
package fxLisaaMuokkaaVuoro;
/**
* @author elias
* @version 28.1.2025
*/
public class LisaaMuokkaaVuoroGUIController {
// 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="fxLisaaMuokkaaVuoro.LisaaMuokkaaVuoroGUIController">
<!-- TODO Add Nodes -->
</BorderPane>
package fxLisaaMuokkaaVuoro;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.fxml.FXMLLoader;
/**
* @author elias
* @version 28.1.2025
*/
public class LisaaMuokkaaVuoroMain extends Application {
@Override
public void start(Stage primaryStage) {
try {
FXMLLoader ldr = new FXMLLoader(getClass().getResource("LisaaMuokkaaVuoroGUIView.fxml"));
final Pane root = ldr.load();
//final LisaaMuokkaaVuoroGUIController lisaamuokkaavuoroCtrl = (LisaaMuokkaaVuoroGUIController)ldr.getController();
Scene scene = new Scene(root);
scene.getStylesheets().add(getClass().getResource("lisaamuokkaavuoro.css").toExternalForm());
primaryStage.setScene(scene);
primaryStage.setTitle("LisaaMuokkaaVuoro");
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