Questions tagged [fxmlloader]
310 questions
0
votes
0 answers
Adding controller to scene (get loaded FXML from controller) - JavaFX
Is it possible to add a controller to a Scene? such that it has the same effect as adding the loaded Nodes from the FXML? What I am currently doing to load my FXML is this:
fxmlLoader = new FXMLLoader(getClass().getResource("fxml"));
Parent page =…

Jupiter
- 91
- 1
- 1
- 7
0
votes
1 answer
How can I update my stage EVENT BASED (on a diffrent Controller)
I simply try to program a slidebar, which contains a inloaded fxml.
These FXML is my menu. With this Menu I have to load other FXML files in a special pane without using a thread-liked working background to request or produce an update.
my…

xXTobiXx
- 17
- 5
0
votes
1 answer
Switch between fxml files
I have created an application using jfxPanel inside swing component. The problem I am facing is I am not being able to change the fxml files. When a button of the fxml is clicked, I want to dispose that fxml and load another fxml file there.
This is…

viper
- 714
- 1
- 11
- 26
0
votes
1 answer
FXML Boiler Plate Code
Is there a way to address a typical boiler plate code to instantiate and load FXML?
A typical version:
public void start(Stage primaryStage)
{
URL fxmlUrl = this.getClass().getResource( /* your string path*/ );
FXMLLoader loader = new…

pntran84
- 463
- 1
- 3
- 11
0
votes
1 answer
Loading FXML from a pastebin
I'm working on an JavaFX program which needs to load the fxml source from this URL: http://pastebin.com/raw.php?i=SW5d5ucs

Piet Jetse
- 388
- 1
- 5
- 16
0
votes
0 answers
FXMLLoader explained
I am using javafx combined with FXML.
I want to apply the MVC pattern. For that I want my Model.java class to be the model, which launches the View.fxml and the controller of that view would be viewController.java.
I need to bring Model.java and…

kaligne
- 3,098
- 9
- 34
- 60
0
votes
1 answer
JavaFX main fxml not loading fxml
My app has tabbed panes, so in order to keep the fxml files manageable, I have a main fxml file that contains the tabs, and a separate fxml for each of the other tabs. This was working fine, but for some reason, the app has stopped loading the…

awyea
- 37
- 1
- 6
0
votes
1 answer
How to override a control's method, when initialized by FXMLLoader?
We have several JavaFX views created with the help of scenebuilder. Their components get injected in controller classes through the FXMLLoader, like for example a TreeTableView. Now I'd like to override a specific method of TreeTableView, but since…

crusam
- 6,140
- 6
- 40
- 68
0
votes
1 answer
javafx new "screen" in same tab
I have a piece of code like this :

Edu Castrillon
- 527
- 1
- 12
- 28
-1
votes
1 answer
I need help to fix a program in java fx that gives me exceptions
Javafx problem that doesn't find the fxml file even if they are in the same package.
I really can't find any errors in the code and so your comments are more than welcome
and SceneBuilder now doesn't allow me to open the fxml file because it says…

Lyr
- 3
- 2
-1
votes
1 answer
JavaFX: Passing Arguments with FXMLLoader to own class
Edit: I believe I found the correct answer to my problem after all.
Original Post:
I'm currently trying to create an application with JavaFX and an EventBus-System. To do this, I have to pass the EventBus as constructor argument to other classes…

Wewius
- 87
- 7
-1
votes
1 answer
Could somebody demystify what I'm doing with anonymous class/lambda?
I'm building a JavaFX app and I've discovered the joy of
FXMLloader.setControllerFactory(setControllerFactory(Callback,Object> controllerFactory)
I went off a searched example to get my code working:
…

Jeffrey Wiegley
- 51
- 4
-1
votes
1 answer
JavaFX FXML Controller won't recognize injectable field
I'm working on a school project, and one of the tasks is to create a nice UI. I'm learning to use JavaFX FXML and am using it by hand and by scene builder. The problem I ran into is that the builder recognizes the Controller class, but won't…

GarbageGoblin
- 3
- 1
-1
votes
2 answers
Parent unable to be assigned javafx fxmlloader
My program is supposed to run my SignIn.fxml on initial run, with the controller named LoginController. However when I run the usual code:
public void showLoginScreen() {
try {
FXMLLoader loader = new FXMLLoader(
…

theunie
- 73
- 2
- 12
-1
votes
3 answers
Getting opened FXMLLoader's Controller
I'm creating JAVA FX application. Is it a possible to get controller already opened window in JavaFX application.For Example I have mainScreen of Application but when I opened other modalWindow to enter data and finally I entered all data and…

Jahongir Sabirov
- 460
- 1
- 8
- 24