Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
javafx-template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Elvedal Hole
javafx-template
Commits
4b20a404
Commit
4b20a404
authored
1 year ago
by
Jonas Elvedal Hole
Browse files
Options
Downloads
Patches
Plain Diff
rename App.fxml to Calc.fxml
parent
313cd730
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/main/java/app/CalcApp.java
+1
-1
1 addition, 1 deletion
src/main/java/app/CalcApp.java
src/main/resources/app/Calc.fxml
+0
-0
0 additions, 0 deletions
src/main/resources/app/Calc.fxml
src/test/java/app/AppTest.java
+1
-1
1 addition, 1 deletion
src/test/java/app/AppTest.java
with
2 additions
and
2 deletions
src/main/java/app/CalcApp.java
+
1
−
1
View file @
4b20a404
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/app/
App
.fxml
→
src/main/resources/app/
Calc
.fxml
+
0
−
0
View file @
4b20a404
File moved
This diff is collapsed.
Click to expand it.
src/test/java/app/AppTest.java
+
1
−
1
View file @
4b20a404
...
@@ -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
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment