Questions tagged [fxmlloader]

310 questions
1
vote
1 answer

JavaFX LoadException while loading fxml-file

Im trying to use fxml and JavaFX for my application. But when the fxmlLoader load my file, i receive the following error: javafx.fxml.LoadException: Font is not a valid type. I really do not understand why. In a other Interface I use exactly the…
1
vote
0 answers

javafx.fxml.LoadException when loading FXML file online

I'm working on a JavaFX application, in this application I load the fxml file from my webserver but i keep getting an error. How can i resolve this error? The FXML…
Piet Jetse
  • 388
  • 1
  • 5
  • 16
1
vote
0 answers

load fxml into center of body pane of another fxml

I am trying to call an fxml (test.fxml) into another fxml (main.fxml) in center of body pane. I am actually doing this in the controller class of main.fxml. No matter how many different ways I try, I am just not able to set the center element at…
hermy67
  • 138
  • 2
  • 15
1
vote
1 answer

ScalaFX i18n with fxml not working

First the working code: val root: BorderPane = new BorderPane(jfxf.FXMLLoader.load(getClass.getResource("/GUI/main.fxml"))) stage = new PrimaryStage() { title = "FXML Test" scene = new Scene(root) } No problem here. Now I wanted to add i18n…
user4063815
1
vote
0 answers

How to refresh stage in JavaFX

I want to update my fxml after adding data in it.while clicking on add button in priceaddonn.fxml data should be transmitted to Sys1.fxml and table should be updated as per priceAddOnn.fxml input PriceAddOnController.java @FXML public void…
Drashti Pandya
  • 348
  • 1
  • 5
  • 15
1
vote
2 answers

How can I close a Javafx 2.2 Tab when clicking a save/cancel button inside it?

I have a JavaFX 2.2 project that uses Tabpane to dynamically open/close Tabs. I want to close a Tab when I click on save/close button on it. Is it possible? I though I could get the answer easily, but gotta say this is fxml project Javafx 2.2,…
1
vote
1 answer

javafx.fxml.LoadException occurs while loading FXML

I am trying to create a very simple VBox with a black background. Thats all. Nothing else. I am using FXML to describe my VBox. sample.fxml:
Aditya Singh
  • 2,343
  • 1
  • 23
  • 42
1
vote
1 answer

JavaFX 8 Load external FXML

When looking at the JavaFX SceneBuilder, it is able to load any kind of fxml. The root node or controller are disregarded. The scenebuilder is able to load any kind of fxml and can display its components. Does anybody fancy a way to load a fxml…
mambax
  • 1,079
  • 8
  • 17
1
vote
3 answers

Changing the text of a label from a different class in JavaFX

This question was already asked here but was not able to find any answers. I have reproduced a similar situation where I would like to change the text of a label from another class using the controller FXMLDocumentController.java public class…
Talat
  • 35
  • 1
  • 1
  • 6
1
vote
1 answer

How to change one half of a split pane while keeping the other the same when an action occurs in javafx

I am trying to create an application in javaFX that has two main halves to it. One side where you have a set of buttons or controls, and the other where it displays a different set of data for each button pressed, almost as if one side changes…
ProvingBard
  • 333
  • 4
  • 12
1
vote
0 answers

Cannot identify the value of a Pane in a method

This is the function which called on clicking save button in save wizard FXML. @FXML public void Onsave() { // Handle Button event. System.out.println(myButton9.getId()); myButton9.setOnAction((event) - > { String text1 =…
1
vote
1 answer

Unable to load FXML when placed in a package

I got this type of file hierarchy in JavaFXApplication5 project. Ive made another package for all the fxml files, so when project gets big it will be easier to find certain files. Now in JavaFXApplication5 main class I have a line which Im sure…
Tomasz Mularczyk
  • 34,501
  • 19
  • 112
  • 166
1
vote
1 answer

Busy popup in JavaFX when FXML parsing is too slow

FXML performance is an issue with JavaFX, if you have complex screens and have divided them into small components (for maintainability / reuse) that use FXML, then it can get really slow. As FXML parsing is made in UI Thread (not sure of this, still…
zenbeni
  • 7,019
  • 3
  • 29
  • 60
1
vote
2 answers

JavaFX Load Exception

I'm trying to make a basic calculator application with JavaFX but I'm having trouble launching the application. This is the error I get Exception in Application start method java.lang.reflect.InvocationTargetException at…
ulqy
  • 13
  • 1
  • 1
  • 4
1
vote
2 answers

Load Java FXML from sub package of start class

It must be a very simple thing to do perhaps but some how none of the solutions worked for me so far. So finally the question, maybe something that I didn't take in account. I want to load FXML with its controller from sub package of the start class…
Indigo
  • 2,887
  • 11
  • 52
  • 83