Skip to content
Snippets Groups Projects
Commit d5713d85 authored by Dallin Nickel (djn011)'s avatar Dallin Nickel (djn011)
Browse files

Merge branch 'add-javafx' into 'Base_System'

Added main javafx class

See merge request !35
parents 76175418 cb80ce6a
No related branches found
No related tags found
2 merge requests!36Base system,!35Added main javafx class
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
@Override
public void start(Stage primaryStage) throws Exception{
Parent root = FXMLLoader.load(getClass().getResource("ui/main.fxml"));
primaryStage.setTitle("Main Window");
primaryStage.setScene(new Scene(root, 300, 275));
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.layout.*?>
<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="Main"
prefHeight="400.0" prefWidth="600.0">
</AnchorPane>
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