Questions tagged [fxmlloader]
310 questions
1
vote
2 answers
JavaFX FXMLLoader getController NullPointerException
I have a project in school where I have to develop a program where you first can choose whether you want to save/read to/from a SQL DB or to save/read to/from XML.
I've made a GUI where you can choose between both methods.
The GUI closes after the…

bad
- 25
- 1
- 5
1
vote
0 answers
Handling/changing elements from FXML in a Controller
First time asking here, and I'm pretty new to javafx and FXML with SceneBuilder. I am trying to change a label's text to what a user has entered in a textfield when a button is pushed, but I am getting errors. When I set the button's…

Alvin H. Gusfre
- 11
- 3
1
vote
1 answer
JavaFX custom controls with @NamedArgs: Cannot bind to untyped object
I want to create an application with FXML with two custom controls, where one of them needs a reference to the other.
The first class gets the reference to the second class via a constructor argument. This is also available in the FXML with the…

Jibbow
- 757
- 1
- 8
- 17
1
vote
1 answer
stop for X seconds before running next function in JAVA FXML (using SCENEBUILDER)
I've used Scenebuilder to place few shapes in my GUI (simplified version of my project). I would like the shapes to change colours but wait 2 seconds between changing colours. I want these changes to happen in my controller class after a button is…

dstar19
- 25
- 1
- 5
1
vote
1 answer
Error switching Scenes with FXML
So I want so switch the Scene between two FXML Files, but I get this error if I try to start the application:
Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native…

j3ypi
- 1,497
- 16
- 21
1
vote
1 answer
How to load a large amount of elements in JavaFX?
I want to create a connect four game in fxml. I have already created the fxml for the board and now I want to load all the "coin fields" which are Buttons with an Image view into my Controller.
From previous experiences with fxml I learned to load…

BoJack Horseman
- 4,406
- 13
- 38
- 70
1
vote
0 answers
javafx.fxml.LoadException - .fxml file not found
first of all, i'm definetly not a native speaker so I hope i can desribe correct what's about in this post :D
so what is the problem? When I try to construct an javaFX application with a a couple different "windows".
The problem is when I try to…

MDaniluk
- 62
- 2
- 2
- 16
1
vote
0 answers
Why fxml not merge with parent pane
I'm creating project in javafx for my last year project as a newbie in javafx I got confuse on few thing I have many doubt about loading fxml into parent. one doubt in them is
@FXML
private StackPane stackmain;
public void start(Stage…
user8411743
1
vote
1 answer
fxml getTitle method can't be interpreted by FXMLLoader
I have a problem with my FXML code.
I want to get the String of the stage title when I initialize it, but when I try to call the operation stage.getTitle() the FXMLLoader throws an exception.
I also tried to get the title within other methods but it…

pR4yChaos
- 37
- 9
1
vote
0 answers
JavaFX connect multiple FXML-Controllers
I want to create a Programm with FXML.
I have multiple FXML-Documents with Controllers for each Documents. But the way I tried to do it does not work beause the Object of the Controller is null.

Luxusproblem
- 1,913
- 11
- 23
1
vote
1 answer
Calling initialize() method externally in fxml controller rather than automatically
I have 6 fxml files having one controller . I need initialize method not on first fxml but on 5th fxml file(PasswordArray.fxml) for customization of buttons. Since initialize() method is called automatically on load of first fxml file(Home.fxml) ,…

Mohita Srivastava
- 11
- 5
1
vote
0 answers
JavaFx: FXMLLoader - Resource not found
I prepared own class Internationalization which extends class ResourceBundle for exception hangling when key is not found in properties file.
public class Internationalization extends ResourceBundle{
private ResourceBundle bundle;
public…

T..o
- 11
- 2
1
vote
1 answer
clojure.java.io/resource returns nil
i need to load an fxml based JavaFX Scene in Clojure,
but when i try to load the resource "view.fxml" it returns nil.
Here is my present code:
(ns ui.ui_controller
(:import (javafx.application Application)
(javafx.fxml FXMLLoader)
…

GameYoker
- 55
- 7
1
vote
1 answer
JavaFx - When are elements created
I am attempting to access elements of an Accordian prior to actually viewing the screen but every time I access it, it has no children. Once I have visited the stage, the children appear. I have built this scene in SceneBuilder and it works as…

Chris
- 2,435
- 6
- 26
- 49
1
vote
1 answer
How can I load a specific container from an FXML document?
I am building application which has different interfaces. I have decided to use the JavaFX for this and I wanted to know if I could have multiple containers saved in the FXML document and when using the the FXML Loader, pick a specific container by…

Bomba Bazooka
- 37
- 10