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
2
votes
1 answer

JavaFX-8: limit number of characters in a textfield

I'm trying to limit the number of characters which can be inserted in a JavaFX-8 TextField: when the limit is reached endLineReached() method is called. I would like to set the maximum number of chars basing on size (the visible part on GUI) of the…
Squerut
  • 65
  • 3
  • 10
2
votes
1 answer

How to stretch a dynamically created background image in both directions in JavaFX

Problem I want to set a background image in my JavaFX GUI. The GUI should be resizable to any ratio so that my background image must stretch in both directions (while changing the ratio between width and height of the background image) Inspired by…
2
votes
2 answers

How to use Afterburner.fx with Gradle instaed of Maven 3, while leaving the original project structure of afterburner.fx

afterburner.fx for JavaFX 8 is a minimalistic (3 classes) JavaFX MVP framework based on Convention over Configuration and Dependency Injection created by Adam Bien. afterburner.fx use Maven 3. I would like to use it with Gradle. How to use…
Robert Halter
  • 362
  • 1
  • 9
2
votes
2 answers

TreeTableView disable any cell in parent row

How can I disable any cell editable in parent row in treetableview? Please look the pictures and check the sample code. Shortly I want to disable row editable if row is expandable (root row or sub root row) this picture is correct but this is not…
sancho
  • 598
  • 2
  • 8
  • 22
2
votes
1 answer

Dynamic change of JavaFX controls from other objects

I'm working on a simple javaFX desktop software, it essentially allow a user to control various lights via serial communication. It's composed of three classes: he UI Controller (written using javaFX scene builder 2.0 and a custom library for…
2
votes
1 answer

Display variable value in text javafx

This is my first question and I am new in programming. I hope this question will not be boring for you. I am writing a version of the Snake game in java for a school project. I am using javafx. Each time the head eats the apple, a text appears and…
Stephane B.
  • 542
  • 6
  • 18
2
votes
1 answer

Embedding a JFXPanel in a Swing application fails on add/remove

When a JavaFX panel is added and removed from a Swing application it can't be added any more. Execute the test below and press the "add/remove FXPanel" button multiple times - for some reason it works only once. public class EmbeddedFXPanelTest…
wzberger
  • 923
  • 6
  • 15
2
votes
1 answer

JavaFX8 Timeline playing issue

I am using multiple Timelines in my application as Timeline timeLine1 = new Timeline(new KeyFrame(Duration.seconds(1), actionEvent -> { System.out.println("Enter in timer for check and playcontent"); …
2
votes
0 answers

How to edit multiple cells in JavaFX TableView?

I have a JavaFX TableView with some columns and some rows. Each column has a custom TableCell to be edited, for example: some columns use text fields, some others use check boxes, choice boxes and so on. What I want is to edit several cells…
rual93
  • 553
  • 4
  • 11
2
votes
0 answers

JavaFX TableView freezes screen for a while

I'm new to JavaFX and have encountered strange behaviour, firstly i will show my code public class FreezeFX extends Application { private VBox root; private HBox btnContainer; private Button addBtn, removeBtn; private TableView
Adrian Kapuscinski
  • 1,124
  • 12
  • 13
2
votes
1 answer

How to make nodes in a chart focus traversable?

I'm on javafx-8 and java8, trying to make an interactive chart. So far I've implemented all the mouse actions (highlight on mouse over, drag&drop to change values etc), but I'm not able to implement any keyboard interactions (basically changing its…
John
  • 660
  • 10
  • 26
2
votes
0 answers

JavaFX Dialogs : add a custom locale

I would like to use the JavaFX 8 dialogs in NL locale. Unfortunately, this language is not provided by the JDK. I tried to create the _nl file in the resources of my project (at the same directory than the bundles of the JDK). When a call the…
Jonathan
  • 85
  • 1
  • 8
2
votes
2 answers

How to render 3D graphics properly

I was trying to make a rubiks cube in javafx an ended up with a very bad model as given in this Image. I am giving my source for code for this, where I have used RectangleBuilder class to create rectangles and transformed in 3d. To fix the graphics…
2
votes
1 answer

TitledPane not resized vertically when using a TextFlow in a custom control

I'm using a TextFlow with a Text inside a custom JavaFX control and this control is placed in a TitledPane. Control declaration : public class CustomControl extends Control { @Override protected Skin createDefaultSkin() { return…
amischler
  • 128
  • 5
2
votes
1 answer

javafx 8 dialog and concurrency

I want to show a custom JavaFX 8 dialog to a user, capture data from the user and then close the dialog after the data is saved to the database (or shows an error message\alert). At the moment, the dialog is shown with the following…
user2025706
  • 167
  • 1
  • 8