All Questions

13
votes
1answers
7408 views

javafx 8 compatibility issues - FXML static fields

I have designed a javafx application which works fine in jdk 7. When I try to run it in java 8 I am getting the below exceptions: javafx.fxml.LoadException: at javafx.fxml.FXMLLoader.constructLoadEx...
43
votes
3answers
38107 views

JavaFX periodic background task

I try to run in JavaFX application background thread periodically, which modifies some GUI property. I think I know how to use Task and Service classes from javafx.concurrent and can't figure it out ...
8
votes
2answers
8808 views

Javafx PropertyValueFactory not populating Tableview

This has baffled me for a while now and I cannot seem to get the grasp of it. I'm using Cell Value Factory to populate a simple one column table and it does not populate in the table. It does and I ...
40
votes
4answers
61629 views

Accessing FXML controller class

I would like to communicate with a FXML controller class at any time, to update information on the screen from the main application or other stages. Is this possible? I havent found any way to do i...
24
votes
5answers
25973 views

Compile code using JavaFX 2.0 (using command line)

I wonder how to compile code using JavaFX, from a Windows shell. I have this code in fxservidor.java: public class Fxservidor extends Application { /** * @param args the command line argum...
11
votes
1answers
3626 views

JavaFX2: Can I pause a background Task / Service?

I am trying to set up a background service that would perform bulk loading of transaction data from a csv file. This background service would be initiated from a menu item action mapped to a method in...
16
votes
4answers
21897 views

How to calculate the pixel width of a String in JavaFX?

It appears that there is no API call to calculate the width (in pixels) of a text string in Java FX 2.2. There have been suggestions of workarounds on other forums, but my efforts to create or find a...
22
votes
2answers
28259 views

Why am I getting java.lang.IllegalStateException "Not on FX application thread" on JavaFX?

I have an application that has a TableView that has an attached listener so it refreshes as soon as it detects a change, but the thing is that I´m getting java.lang.IllegalStateException: Not on FX a...
43
votes
5answers
38365 views

JavaFX 2.1: Toolkit not initialized

My application is Swing-based. I would like to introduce JavaFX and configure it to render a Scene on a secondary display. I could use a JFrame to hold a JFXPanel which could hold a JFXPanel but I wou...
10
votes
2answers
8680 views

JavaFX - Background Thread for SQL Query

I'm wondering if anybody can help me with a rather annoying problem regarding creating a background thread in JavaFX! I currently have several SQL queries that add data to the UI which currently run o...

Previous Next