Questions tagged [fxmlloader]
310 questions
0
votes
0 answers
FXMLLoader Error. Location Is Required (on Jar)
I face a problem with a project. I make a simple game in Eclipse using JavaFX. In the beginning I faced a problem with this command in FXMLLoader
root = FXMLLoader.load(Main.class.getResource("\\application\\design.fxml")); .
When I changed the…
0
votes
0 answers
fxml loader exception "root value is already specified" I never specified a root value
I am trying to have a hyperlink open a new window. I have copied the fxml loader method from other parts of my code that work without issue. For some reason I am getting an fxml loader exception issue that says the root value is already specified. I…
user11366206
0
votes
1 answer
FXMLLoader won't find fxml file - Maven project
When I run the main class, in a Maven project, I get:
Exception in Application start method
From what I've understood i'ts because the FXML file won't load.
This is the Filesystem Hierarchy
src
└- main
├- java
| └- zenit
…

Strazan
- 147
- 1
- 16
0
votes
0 answers
javafx.fxml.LoadException Java Fxml exception at line 11 , code isnt executing
I am trying to link my sample.fxml file to another file open.fxml along with a variable called file name but it shows :
Something Went Wrong: javafx.fxml.LoadException:…

Mohammad Ummair
- 309
- 2
- 9
0
votes
1 answer
JavaFX Communication Between Two Controller Classes
I'm unable to transfer data from one controller class to another for my JavaFX application. I've spent 4 days trying to find a solution now with no success. Will be grateful for any and all suggestions as i really don't know what to try next.
I'm…

J.Allen
- 3
- 2
0
votes
0 answers
How to load dynamically a fxml document from string AND compile/instanciate its controller from a string
I want to build a javafx app where the fxml document and its controller both are stored in a database.
Thanks to jewelsea, I use this code to load the fxml document dynamically :
String fxmlDocument = "\n"…

tkp
- 1
- 2
0
votes
1 answer
Not able to get fxml ressource in eclipse?
I'm trying to load a .fxml file from some package and can't manage to do it.
Here is my file tree :
And here's the viewService which tries to return an FXML loader set to my fxml file :
private static FXMLLoader getLoader(String id) {
try {
…

Philémon Roubaud
- 57
- 8
0
votes
1 answer
FXMLLoader ClassNotFoundException
I created a new class FunStackPane which is extend from StackPane. But FXMLLoader does not see it and gives an error:
Exception in Application start method
java.lang.reflect.InvocationTargetException
at…

RedCape
- 15
- 3
0
votes
1 answer
FXML Load exception when inserting data of own class into tableview
I have a problem again.
I am trying to understand FXML and I am currently using the "Mastering FXML" guide of oracle "creating an address book with FXML".
I am pretty near at the end of the guide but i am not able to fix a problem I have since…

Schurke
- 19
- 1
- 1
- 9
0
votes
2 answers
How to fix Java FXML Loader crashing even though a location is set?
I am trying to use FXML loader to load an fxml file that is in another package.
I have debugged for over a week now. I have asked around and looked everywhere but what seems to be working for everyone else isn't working for me. I have tried using an…

MahBoi
- 61
- 1
- 6
0
votes
0 answers
(JAVA) Confused with jar files
I'm running jdk 1.8_191
I created an JavaFX application.
I tested it in IDE, everything runs well.
I created an exe Artifact, I get errors when loading FXML's.
Solved it tho by putting my FXML files and Java files in one folder like this
used to…

Karl Garcia
- 45
- 11
0
votes
1 answer
Java EOFException issue ObjectInputStream
I am trying to implement a load/save for a List of 'Accounts' with a similar approach to one that I've had success with for a HashMap.
Background:
private List accounts;
public AccountManager() {
try {
accounts =…

hb22
- 383
- 1
- 2
- 14
0
votes
0 answers
While making own JOptionPane like class in JavaFX
Hey i am making a project on general store management and i need some information message Dialogs. As you know that are not in javafx they in Swing so for that purpose i have made this dialog with fxml file. Here is the code that i had done in that…

Software Engineer
- 145
- 10
0
votes
0 answers
Java FXML dynamically load content onto multiple different tabs
I have multiple lists which I would like to loop through and return all their items in their respective tabs as buttons, each having an action.
I have tried the following:
@FXML
private Tab aTab;
And then on button press:
StackPane tab = new…

hb22
- 383
- 1
- 2
- 14
0
votes
1 answer
Calling a controller class method from a non-controller class method in JavaFX, combobox population
public static void loadUser(String txtFieldName, String txtFeildPassword) throws FileNotFoundException {
File file = new File( "C:\\Users\\obiak\\Documents\\fall 2018\\application Programming\\JavaFX Workspace"
+…

chinedu obiakara
- 15
- 4