Questions tagged [javafx-8]

JavaFX 8 (previously named JavaFX 3) introduces a new API for JavaFX technology. JavaFX 8 supports 3D and brings up a Retina-Display Support. It is part of the JDK8.

JavaFX 8 is part of the JDK 8

Useful resources:

JavaFX-2 links, actual for JavaFX-8 :

Testing JavaFX-2+ applications :

Declarative languages for JavaFX :

OpenJavaFX links :

JavaFX Scene Builder links :

Blogs and news sites about JavaFX :

Projects, complementing and extending basic functionality of JavaFX :

Books about JavaFX 2 technology :

Personal blogs, by people, who write about JavaFX :

Use javafx-2 tag for questions, related to JavaFX 2+ (versions 2.0+), which is the prequel of javafx-8.

Use JavaFX 2 bug tracker to file and track issues about bugs and incompatibility (having previously checked, that dublicates are not existing already, and it is not an intended change).

5923 questions
27
votes
2 answers

IDE hangs in debug mode on break point in java fx application

I have a problem while debugging in IntelliJ IDEA, it hangs in debug mode on break point in listeners in javafx application. I tried to increase heap space, but it's not help. Maybe someone had such problem too, please, suggest me what to do.
vikki
  • 321
  • 5
  • 13
25
votes
3 answers

How to listen resize event of Stage in JavaFX?

I want to perform some functionality on resize event of form (or Scene or Stage whatever it is). But how can I detect resize event of form in JavaFX?
Amita Patil
  • 1,310
  • 2
  • 14
  • 22
25
votes
2 answers

JavaFX 8 HiDPI Support

I just tried out the JavaFX Hello World Example on a 4k screen on Arch Linux, but unfortunately the GUI does not scale. The documentation says Hi-DPI support. JavaFX 8 now supports Hi-DPI displays. So how can I make my application dpi aware?
tryzor
  • 800
  • 2
  • 10
  • 18
25
votes
8 answers

Combobox clearing value issue

I've stumbled on an issue with Comboboxes in javafx2.2. This is the scenario: Users click on the 'editFile' button. Another pane becomes visible (with the setVisible method). This pane contains 6 comboboxes. Three of them have fixed items:…
Perneel
  • 3,317
  • 7
  • 45
  • 66
23
votes
3 answers

Running JavaFX application with JDK 11+

If I understand Oracle's announcments JavaFX won't be included to the JDK beginning with JDK 11 and will be only available as OpenJFX. What steps do I have to make as an software developer to allow my JavaFX application to be run with JDK 11+? Is…
Hannes
  • 5,002
  • 8
  • 31
  • 60
23
votes
6 answers

TableView: adjust number of visible rows

I'm using this table to display data in Table View: import javafx.application.Application; import javafx.beans.property.IntegerProperty; import javafx.beans.property.SimpleIntegerProperty; import javafx.beans.property.SimpleStringProperty; import…
user1285928
  • 1,328
  • 29
  • 98
  • 147
23
votes
4 answers

JavaFX's task seem to consume exceptions. Is it a bug or a feature?

Consider this code: Thread.setDefaultUncaughtExceptionHandler((Thread t, Throwable e) -> { System.out.println("An exception occurred!"); }); // set the exception handler for the JavaFX application…
user555
  • 1,564
  • 2
  • 15
  • 29
23
votes
3 answers

Why does Platform.runLater not check if it currently is on the JavaFX thread?

When using JavaFX 8, we need to run interactions with the GUI via Platform.runLater, or else they will throw exceptions if ran from another thread. However the implementation of Platform.runLater never checks whether it currently is on the JavaFX…
skiwi
  • 66,971
  • 31
  • 131
  • 216
23
votes
3 answers

Basic JUnit test for JavaFX 8

I want to create basic JUnit test for JavaFX 8 application. I have this simple code sample: public class Main extends Application { public static void main(String[] args) { Application.launch(args); } @Override public void…
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
23
votes
4 answers

Displaying changing values in JavaFx Label

In JavaFX, how can I display values which continuously change with time using "label" ?
Surjit
  • 345
  • 1
  • 5
  • 13
22
votes
4 answers

how to bind inverse boolean, JavaFX

My goal is to bind these two properties such as when checkbox is selected then paneWithControls is enabled and vice-versa. CheckBox checkbox = new CheckBox("click me"); Pane paneWithControls = new…
Tomasz Mularczyk
  • 34,501
  • 19
  • 112
  • 166
22
votes
3 answers

Implementing a JavaFX application auto update feature

I'm about to write a new cross platform application, and I choosed JavaFX, mainly because of its rich UI libraries (both standard and third party) and it native data binding feature. My application will be deployed via native packaging, both because…
Claudio Mezzasalma
  • 646
  • 1
  • 5
  • 23
22
votes
1 answer

Error resolving "onAction" while loading FXML

I'm having some issues getting a simple hello world application to run. It is throwing the following error: Exception in Application start method Exception in thread "main" java.lang.RuntimeException: Exception in Application start method at…
DesolateTen
  • 233
  • 1
  • 2
  • 6
22
votes
1 answer

Version of WebKit in JavaFX 8 WebView

What is the version of WebKit in JavaFX 8?
Mukesh Kumar
  • 783
  • 1
  • 9
  • 24
22
votes
4 answers

Issue with background color in JavaFX 8

Looks like there is an issue with setting background colors for panels in JavaFX 8. I had been trying the below, but none of them set the appropriate background colors. VBox panel = new VBox(); panel.setAlignment(Pos.TOP_LEFT); // None of the below…
Sirish V
  • 930
  • 2
  • 12
  • 24