Questions tagged [fxmlloader]
310 questions
1
vote
1 answer
External jar FXML Load Exception
I try to load a class located in an external jar using classloader. The class "FXMLbase" loads ok, but the error is triggered when the FXMLdocument.fxml try to instantiate the FXMLDocumentController. However when the "FXMLbase" is instantiate…

Oscar Hurtado Morato
- 13
- 1
- 4
0
votes
1 answer
Passing fxml objects between two seperate controller classes javafx fxml
I have two seperate stages (mainStage, popupStage), both with their own controller class and associated fxml file.
I would like to access some buttons defined with the @FXML annotation in mainStage's controller, from popupStage's controller. I've…

Mira
- 33
- 6
0
votes
0 answers
Exception in Application start method JavaFX
I've tried all the advice on Stack Overflow, but it didn't help to solve this problem. Whenever I try to run the main.java file, it throws an exception.
The code is shown below. Has anyone faced this issue before?
main.java>>
import…

Aziret
- 1
0
votes
0 answers
JavaFX: Exception in thread "JavaFX Application Thread" java.lang.IllegalStateException: Location is not set
I am working on Java FX project I'm created FXML mainScreen.fxml file and tried to load it using FXML loader but it always says "Location is not set"
Here is my entry point of my project that is a Java file
Error description and some files
This is…

VMDang
- 1
0
votes
0 answers
JavaFX Working Except for FXMLLoader Import
When I was searching for a solution I noticed most people's issues was an incorrect installation. I believe my installation is correct as a normal JavaFX project works fine. However, I am not able to import the FXMLLoader or use it in my Java…

SilentThief
- 21
- 4
0
votes
0 answers
Error resolving event handler name from FXML
I created a JavaFX Project using Maven. When i try to start the Project without an fxml file using:
mvn javafx:run it starts perfectly. But as soon as i want to load an fxml file instead i get the following error:
[INFO]…

Threast
- 21
- 3
0
votes
0 answers
problems with creating a new window in javaFxml
So I was getting started with javaFxml, and I was creating a simple notes program. I wasn't able to Make a new window for adding items to the list of existing ones, so I tried again on a specific new program, but nothing worked.
This is the…

supo
- 1
0
votes
1 answer
JavaFX exception "Exception in Application start method" only after I add ids and onAction using Scene Builder
I have a project where I am creating the GUI on Scene Builder. When I first create all the elements of my GUI, it works perfectly. But as soon as I add ids and onActions to my textFields and other elements, it breaks the code saying that there is a…

Vitor Dos Santos
- 1
- 1
0
votes
1 answer
Accessing localisation ResourceBundle inside JavaFX FXML Controller
I'm trying to add localisation functionality to a JavaFX program using FXML. From what I understand, when you create a FXMLLoader object, you can pass a ResourceBundle into the FXMLLoader's constructor like so:
FXMLLoader loader = new…

Oliver Bevan
- 45
- 5
0
votes
1 answer
FXML files don't seem to be transfered in the JAR
I am trying to export a JavaFX program that I wrote with Intellij into a JAR so that I can send it to my classmates so they can run it during an oral presentation.
My files are structured this way :
src
main
java
plop
main
others classes and…

A.CAL
- 41
- 6
0
votes
1 answer
How to load an fxml file from a controller that is linked to a different fxml file?
I am building a JavaFX which has two windows: a signin window and a register window. The fxml file of the former has a "username" label and text field, a "password" label and text field, a "signin" button, a "close" button and a hyperlink that reads…

Rodolfo
- 3
- 1
0
votes
0 answers
In FXML Controller, fxml fields are null, only the action responds
In my controller class for my selection_bar.fxml, my controller deemed that the fxml field are null, I looked through many examples and other similar question but none seem applicable to my situation. I would very much like some help. Thank…

shonn Li
- 1
- 1
0
votes
0 answers
Exception java.lang.ClassNotFoundException: javafx.embed.swing.SwingNode when executing a GUI for a database query, results in a SwingNode
I am a beginner in using FX and JDBC. I am trying to implement a GUI which enable the user to write a query and view the answers in a table. I am using BorderPane to hold the GUI components and a SwingNode to display the results in a JTable which is…

EdC
- 1
0
votes
1 answer
Switch scenes from FXML to pure JavaFX UI class
I'm pretty new to JavaFX. I have learnt how to switch scenes between FXML files or classes purely coded in JavaFX only.
My biggest challenge now is to switch between an FXML UI and another built in JavaFX or vice-versa, so I know it's possible but I…

Drive Knight
- 1
- 2
0
votes
1 answer
ComboBox is null on start of ActionEvent
Problem:After the ActionEvent is triggered (selecting an account), the comboBox is null. When I run the program, I can see that the ComboBox is populated. I think I'm doing something wrong with the FXML loader. I read through the following document:…

foffor
- 3
- 2