Skip to content
Snippets Groups Projects
Commit 5da4cfc8 authored by Jason Dittmer (jcd763)'s avatar Jason Dittmer (jcd763)
Browse files

Adding starting UI code. Needs to be connected to back end functions.

parent da21840b
No related branches found
No related tags found
3 merge requests!45Prototype to Master for Milestone 5,!40Feature rebind keys,!38Add UI to feature branch
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