Skip to content
Snippets Groups Projects
Commit 4b20a404 authored by Jonas Elvedal Hole's avatar Jonas Elvedal Hole :crab:
Browse files

rename App.fxml to Calc.fxml

parent 313cd730
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ public class CalcApp extends Application { ...@@ -15,7 +15,7 @@ public class CalcApp extends Application {
@Override @Override
public void start(Stage stage) throws IOException { public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(this.getClass().getResource("App.fxml")); FXMLLoader fxmlLoader = new FXMLLoader(this.getClass().getResource("Calc.fxml"));
Parent parent = fxmlLoader.load(); Parent parent = fxmlLoader.load();
stage.setScene(new Scene(parent)); stage.setScene(new Scene(parent));
stage.show(); stage.show();
......
File moved
...@@ -29,7 +29,7 @@ public class AppTest extends ApplicationTest { ...@@ -29,7 +29,7 @@ public class AppTest extends ApplicationTest {
@Override @Override
public void start(Stage stage) throws IOException { public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(this.getClass().getResource("App.fxml")); FXMLLoader fxmlLoader = new FXMLLoader(this.getClass().getResource("Calc.fxml"));
root = fxmlLoader.load(); root = fxmlLoader.load();
controller = fxmlLoader.getController(); controller = fxmlLoader.getController();
stage.setScene(new Scene(root)); stage.setScene(new Scene(root));
......
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