Questions tagged [fxmlloader]
310 questions
0
votes
1 answer
JAVA and JAVAFX problem - trying to connect additional controllers to the main controller
Good afternoon everyone. I usually try to find and fix mistakes myself, but this time I got stuck for real. My assignment was to write a loan calculator. All code was working and compiling just fine until I got to the point where I need to create a…

ernestas20111
- 13
- 2
0
votes
0 answers
JavaFX 11 MultiThread NPE
I am working with JavaFX. I use a Scene Builder . It makes a loader and Controller class. I try to change a text area value from another thread.
@Override
public void run() {
Platform.runLater(() -> load_text.setText("Hello…

Alex Zaslavskis
- 23
- 1
- 8
0
votes
0 answers
Instances of javafx.scene.Cursor cannot be created by FXML
it s my first time to use javafx a create a frame with SceneBuilder-8.5.0 but there is this error :
Instances of javafx.scene.Cursor cannot be created by FXML loader.
any solution ??

Youcef Bouguerni
- 1
- 1
0
votes
2 answers
JavaFX FXMLLoader cannot locate file
This is my first Question so bear with me if I get something wrong but I have a strange issue with the FXMLLoader that I just can't explain myself so any hints or help would be greatly appreciated.
The following snippet is how I load the File…

GamerWoona
- 11
- 2
0
votes
1 answer
When I try to load a FXML file I get a java.io.IOException error
I am trying to load an fxml file I built with scene builder but for some reason, I get a java.io.IOException error.
Here is the error I get:
/Library/Java/JavaVirtualMachines/jdk-12.jdk/Contents/Home/bin/java --module-path…

Anish Rajeev
- 3
- 4
0
votes
1 answer
(JavaFX) Dynamically, columns added. but data was not added
https://github.com/privatejava/javafx-dynamic-tableview/issues/1
Please refer above link.
JavaFX(fxml) tables columns are dynamically added. but data doesn't add.

Sanjeevan Rajakulasingam
- 51
- 1
- 8
0
votes
1 answer
How to bind inner class controller to FXML?
I want to bind a inner class "FinishDialogController" Controller to FXML.
This is a real conundrum.
But fx:controller="app.view.MainLayoutController.FinishDialogController" is wrong .
Who knows the correct way?
I search for "inner" in Introduction…

Andy
- 1,077
- 1
- 8
- 20
0
votes
2 answers
JavaFX: IllegalStateException: Location is required
I'm trying to load an FXML for my App just like I did in another project. Difference: doesn't work. I get an "IllegalStateException: Location is required"
I tried to move the file to a different location but that didn't work either.
I checked the…

latteyo
- 1
- 1
0
votes
1 answer
How to pass values to already opened Stage(First Contrller) from Second Controller?
I've two Controllers
FXMLDocumentController has TableView CustomerTable.
NewCustomerController a second Controller to add a new row.
Here is my code
FXMLDocument.fxml

Swapnil
- 115
- 1
- 12
0
votes
1 answer
How to get JavaFx suggestions like
I'm currently in JavaFX training and it turns out I need an FXML file, all works perfectly:
I can create the FXML file
I can define my rootPane
But when I want to add elements like
user11533867
0
votes
2 answers
How do you transition between controllers within the original window that was created
I currently have 3 classes.
ScreenController (controller class):
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.layout.AnchorPane;
import java.net.URL;
import…
user11043535
0
votes
1 answer
How to fix 'IllegalStateException' when using custom JavaFXBuilderFactory
First of all, I'm using Kotlin in my JavaFX Project.
I'm trying to implement my own JavaFX Node that extends Canvas.
class BrikkCanvas(width: Double, height: Double, private val rows: Int, private val cols: Int) : Canvas(width, height)
I also want…

pjaro
- 65
- 4
0
votes
0 answers
How to dynamically change the view of the centre of BorderPane when a button is clicked?
I am constructing an application and I am using borderPane as the main layout. I am having a sideBar on the rightPane with different buttons, my goal is to change the centerPane with different views when a corresponding button is clicked from the…

Bishoy Essam
- 1
- 1
0
votes
1 answer
attempting to make logging gui the first one to run from my application
The issue is, I cannot seem to find a way to actually put the Logging gui before my app starts, FXMLseveral any ways I can put in the loging form I made with labels and method which required login informations before my application pops up?
I tried…

Sokol Nila
- 11
0
votes
0 answers
Setting up to use JAVAFX at the Command Line
I am experimenting with FXML. Here is the java file. It resides in /Users/morrison/teaching/java/xml and all files have read permission.
import javafx.application.Application;
import javafx.application.Platform;
import javafx.stage.Stage;
import…

ncmathsadist
- 4,684
- 3
- 29
- 45