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

How to create a popup window in javafx

I want to create a popup window in a JavaFX application. Give me some ideas. When I click on Check button it opens the popup window. How to do it?
Maulik Patel
  • 2,742
  • 4
  • 19
  • 28
22
votes
3 answers

JavaFX: Why does stage.setResizable(false) cause additional margins?

This small JavaFX test application import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.layout.BorderPane; import javafx.scene.paint.Color; import javafx.scene.shape.Rectangle; import javafx.stage.Stage; public…
Jens Piegsa
  • 7,399
  • 5
  • 58
  • 106
22
votes
4 answers

Where can I find the JDK 8/JavaFX 8 source code?

I would like to override the Implementation of FXMLLoader and recompile the JDK 8. Where can I find the source code of the JDK8 / JavaFX 8 ?
Lionel Père
  • 526
  • 2
  • 5
  • 17
22
votes
4 answers

Set Font globally in JavaFX

How can I set the Font type globally in a JavaFX application? Is there any solution that I can use? In JavaFX 8 the default Font has changed, and I would like to use the same Font used in JavaFX 2.2.
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
21
votes
2 answers

Adding a custom component to SceneBuilder 2.0

I have the need to have a selection listener and select method on a pane to be able to monitor and present a highlight when a node is clicked on. I did the following: public class PaneWithSelectionListener extends Pane { private…
purring pigeon
  • 4,141
  • 5
  • 35
  • 68
21
votes
2 answers

controlsfx Dialogs deprecated for what?

ControlsFX class Dialogs is marked as deprecated. What to use instead?
Dims
  • 47,675
  • 117
  • 331
  • 600
21
votes
1 answer

javafx 8 compatibility issues - FXML static fields or methods

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.constructLoadException(FXMLLoader.java:2617) at…
Christopher_Daniel
  • 273
  • 1
  • 2
  • 7
21
votes
3 answers

How to drag an undecorated window (stage) of JavaFX

I have this undecorated window: public static void initStartPage(final Stage primaryStage) { final Stage startPage = new Stage(); startPage.initStyle(StageStyle.UNDECORATED); //startPage.initOwner(primaryStage); …
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
21
votes
6 answers

Default JavaFX-CSS

Is there any way to see the applied CSS-Rules for JavaFX-Elements? Or there is a published reference with the default CSS-Rules available? I would like, for example , to know the color of Toolbar's border.
Gundon
  • 2,081
  • 6
  • 28
  • 46
20
votes
1 answer

Kotlin compatibility with JavaFXPorts

I would like to build a JavaFX Android app with JavaFXPorts and Kotlin code. Is it possible to use Kotlin in a JavaFXPorts project? Here's my example Gradle (version 5.6.4) project: Note: Problem with this code is the Kotlin Runtime... Is there any…
Küroro
  • 628
  • 6
  • 20
20
votes
3 answers

Get real position of a node in JavaFX

What is the best way to get the absolute position of a node in JavaFX? Imagine we have a node in a Pane (Hbox, Stackpane, or any other pane) and that may have a parent itself. I want to get the absolute position of that node and use it in another…
maryam
  • 387
  • 2
  • 3
  • 10
20
votes
3 answers

JavaFX 8 WebEngine: How to get console.log() from javascript to System.out in java?

I'm using both JavaFX and the javascript engine inside JavaFX WebEngine to develop an application. I'd like to get feedback from javascript for debugging purposes. What happens to the console output inside the WebEngine? Is there any way I can…
user4159962
20
votes
1 answer

What is the recommended approach to keeping intermediate bindings from being garbage collected in JavaFX 8

TL;DR: GC is eating my active bindings. I have an app that was developed and successfully deployed using JavaFX 2.2 on Java 7. When I upgraded/transitioned to JavaFX 8.0 (and Java 8), certain features would "mysteriously" stop working--mid…
metasim
  • 4,793
  • 3
  • 46
  • 70
20
votes
5 answers

How do you set the icon of a Dialog control Java FX/Java 8

I might be missing something very obvious, but I can't find out how to set the Icon for a Dialog component (ProgressDialog to be more precise). I know how to do that for a Stage: this.primaryStage.getIcons().add(new…
BlackLabrador
  • 2,829
  • 5
  • 18
  • 21
20
votes
2 answers

JavaFX 8 - Positioning Text Vertical Center of HBox

I am having a very difficult time positioning Text in an HBox. I am able to set the Horizontal Alignment of the Text, but I am not able to set the Vertical Alignment of the Text. I am trying to set the Text in the Vertical Center of the Hbox,…
Sameer
  • 281
  • 1
  • 2
  • 8