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
43
votes
4 answers

ScrollPanes in JavaFX 8 always have gray background

When I upgraded by JavaFX app from JavaFX 2 to JavaFX 8, I noticed that ScrollPanes always showed up as gray rectangles, even with a background color set or the background set to be transparent.
Jon Onstott
  • 13,499
  • 16
  • 80
  • 133
36
votes
2 answers

JavaFX 8 Memory leak when Hiding Stage

I have a JavaFX application that minimizes to tray when the X button is pressed. I have been monitoring the application via VisualVM for memory trends. The weird part is, when the application is open, or minimized to taskbar, the memory is always…
staticvoid
  • 261
  • 3
  • 9
36
votes
1 answer

Task vs Service for database operations

What is the difference between JavaFX 8 Task and Service and in which case is it better to use one over the other? What is better to use in database operations?
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
35
votes
1 answer

Styling default JavaFX Dialogs

I'm looking for a way to style the default JavaFX Dialog (javafx.scene.control.Dialog). I tried to get the DialogPane and add a stylesheet, but it covers only a small piece of the dialog. I would prefer to style only with an external css file and…
xoned
  • 2,701
  • 2
  • 31
  • 43
35
votes
8 answers

How to control the JavaFX Tooltip's delay?

I was playing around with JavaFX's Tooltip. I realized that for me personally the delay between hovering over something and the tooltip actually appearing is too long. A look in the API reveals: Typically, the tooltip is "activated" when the mouse…
Turing85
  • 18,217
  • 7
  • 33
  • 58
34
votes
4 answers

Is it possible to use a Java 8 style method references in Scala?

I'm developing a JavaFX8 application in Scala but I couldn't figure out how to pass a method reference to an event handler. To clarify, I'm not using ScalaFX library but build my application directly on top of JavaFX. Here's the related code…
Mustafa
  • 2,447
  • 23
  • 31
34
votes
2 answers

Creating a Truetype Font file with javafx

I have a canvas. It asks the user to draw a character from A-Z, a-z or 0-9. once the user draws a character say A, the current canvas object is saved in an arraylist of canvases. and another blank canvas pops up that asks the user to draw B. and so…
Aditya Singh
  • 2,343
  • 1
  • 23
  • 42
32
votes
7 answers

Manually typing in text in JavaFX Spinner is not updating the value (unless user presses ENTER)

It seems that the Spinner control does not update a manually typed-in value until the user explicitly presses enter. So, they could type in a value (not press enter) exit the control, and submit the form, and the value displayed in the spinner is…
James Wierzba
  • 16,176
  • 14
  • 79
  • 120
31
votes
2 answers

JavaFX comes with JDK 8?

I have multiple questions regarding JavaFX. Does JavaFX come with JDK 8? Does JavaFX also require its own runtime environment? I looked in my computer (I have JDK and JRE installed) but could not find the JavaFX. Does this mean that JavaFX has its…
Stardust
  • 999
  • 3
  • 12
  • 24
29
votes
5 answers

Launch JavaFX application from another class

I need to start a javafx Application from another "container" class and call functions on the Application, but there doesn't seem to be any way of getting hold of a reference to the Application started using the Application.launch() method. Is this…
Oli
  • 1,112
  • 1
  • 10
  • 25
29
votes
2 answers

Multiple FXML with Controllers, share object

Goodevening everyone, I have found a bunch of posts already on this topic but I still can not manage to pass an object from Controller1 to Controller2. Is there somewhere a full tutorial or some example project that does this? I've gotten this far…
Perneel
  • 3,317
  • 7
  • 45
  • 66
28
votes
4 answers

Difference between System.getProperty("line.separator"); and "\n"?

While developing GUI with Java FX, I seem to get different results with System.getProperty("line.separator"); and "\n" during writing to a file or getting data from internet. What basically is the difference?
Tilak Madichetti
  • 4,110
  • 5
  • 34
  • 52
28
votes
2 answers

How to handle java web start (jnlp) downloading progress in a preloader?

Issue I have a preloader for my application that handles the Application-specific initialization. Now I'm trying to extend this so that the preloader also shows the progress of the downloaded application JARs. TL;DR Why is the preloader not…
Perneel
  • 3,317
  • 7
  • 45
  • 66
28
votes
5 answers

JavaFX ComboBox not responding on Windows 10

I recently upgraded to Windows 10 and JavaFX code which worked in Windows 8.1 appears to freeze up in 10. I've tracked the issue down to opening a ComboBox within a dialog. This appears to freeze any JavaFX program. Does anyone else have the same…
Jamie Macaulay
  • 794
  • 6
  • 20
28
votes
11 answers

JavaFX: How to change the focus traversal policy?

Is it possible in JavaFX to change the focus traversal policy, like in AWT? Because the traversal order for two of my HBoxes is wrong.
Sonja
  • 505
  • 1
  • 7
  • 15