Skip to content
Snippets Groups Projects
Commit b454db99 authored by Eilert Tunheim's avatar Eilert Tunheim
Browse files

commented main

parent ff6faac5
No related branches found
No related tags found
No related merge requests found
...@@ -56,13 +56,16 @@ public class Main extends Application { ...@@ -56,13 +56,16 @@ public class Main extends Application {
/** /**
* Starts the application * Starts the application
* *
* @param args * @param args input parameter
* @throws IOException * @throws IOException throws exception if an error occurs
*/ */
public static void main(String[] args) throws IOException { public static void main(String[] args) throws IOException {
launch(args); launch(args);
} }
/**
* This function exists the application and stops all threads
*/
public static void exitApplication(){ public static void exitApplication(){
Platform.exit(); Platform.exit();
System.exit(0); System.exit(0);
...@@ -89,8 +92,8 @@ public class Main extends Application { ...@@ -89,8 +92,8 @@ public class Main extends Application {
/** /**
* Sets the primaryStage and sets the scene for the window. * Sets the primaryStage and sets the scene for the window.
* *
* @param primaryStage * @param primaryStage The main stage
* @throws Exception * @throws Exception throws exception if an error occurs
*/ */
@Override @Override
public void start(Stage primaryStage) throws Exception { public void start(Stage primaryStage) throws Exception {
...@@ -143,6 +146,7 @@ public class Main extends Application { ...@@ -143,6 +146,7 @@ public class Main extends Application {
InputPopup.display(); InputPopup.display();
} }
// Getters and setters
public static void setTreeSpeciesText(String treeSpeciesText) { public static void setTreeSpeciesText(String treeSpeciesText) {
Main.treeSpeciesText.setText(treeSpeciesText); Main.treeSpeciesText.setText(treeSpeciesText);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment