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

How to commit when clicking outside an editable TableView cell in JavaFX?

I have a table cell factory responsible for creating an editable cell in a JavaFX TableView. I'm trying to implement some added functionality to the tableview so that when the user clicks outside the editable cell a commit is made (the edited text…
user555
  • 1,564
  • 2
  • 15
  • 29
14
votes
3 answers

JavaFX 8 swing compatibility

I am currently evaluating whether it would be feasible to convert my current Swing Application to JavaFX 8 using SwingNode and then slowly change everything to JavaFX components. I have stumbled over two problems, which may be lingering bugs in…
Teferus
  • 151
  • 1
  • 7
14
votes
3 answers

Label text position

I have a Label with an image and text final Label label = new Label(labelText); label.setTextAlignment(TextAlignment.CENTER); ImageView livePerformIcon = new…
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
14
votes
1 answer

JavaFX: How to connect two Nodes by a Line?

I want to connect two Nodes with a Line (from center of the first to the center of the second). Initial thoughts: It is assumed that both nodes exist somewhere in the scene graph The Line acts as a decorator and should not be pickable If the Node…
Jens Piegsa
  • 7,399
  • 5
  • 58
  • 106
14
votes
1 answer

How to programmatically set the color or texture of a tab label in JavaFX?

I have a TabPane with several Tabs. If the results of an operation in the Tab failed, I want to set the Tab Label to a Fill red or perhaps the texture to hashed (for those with color blindness). I want to reset the Color back to its default,…
likejudo
  • 3,396
  • 6
  • 52
  • 107
14
votes
7 answers

GUI testing framework for JavaFX 2

I'm currently reading the book Growing Object-Oriented Software Guided by Tests which gives a decent introduction into test driven development. One drawback is that the code developed through the book is based on Swing. For my next project I'd like…
mAu
  • 2,020
  • 1
  • 14
  • 27
14
votes
6 answers

How to Change the icon on the title bar of a stage in java fx 2.0 of my application

I have tried the stage.getIcons().add(new Image("attuncore.jpg")); But I don't know what is going wrong .. Please help. Thanks in advance.
Bipin Bhandari
  • 652
  • 4
  • 9
  • 23
13
votes
4 answers

Can a JavaFX FileChooser "remember" the last directory it opened?

My view controller has a single FileChooser instance used for both opening and saving files. Every time I call showOpenDialog() or showSaveDialog() from that instance, I expect the resulting dialog to be in the same directory as I left it the last…
user4996976
13
votes
2 answers

What is the recommended way of adding a status bar to a JavaFX app?

Should I use the BorderPane layout and add a label at the bottom? Is there a better way?
Darth Ninja
  • 1,049
  • 2
  • 11
  • 34
13
votes
3 answers

JavaFX: Align Buttons inside ButtonBar (using SceneBuilder or fxml)

I have a JavaFX ButtonBar with two Buttons (created via SceneBuilder). I want one of the buttons to be left-aligned and the other right-aligned. (see screenshot) From the docs I already know how I could achieve this inside the…
drkthng
  • 6,651
  • 7
  • 33
  • 53
13
votes
1 answer

FXML, JavaFX 8, TableView: Make a delete button in each row and delete the row accordingly

I am working on a TableView (FXML) where I want to have all the rows accompanied with a delete button at the last column. Here's a video that shows what I mean: YouTube Delete Button in TableView Here's what I have in my main controller…
kmugi
  • 343
  • 1
  • 4
  • 13
13
votes
1 answer

Java 8 U40 TextFormatter (JavaFX) to restrict user input only for decimal number

I am looking for an example to restrict user input to only digits and decimal points using the new class TextFormatter of Java8 u40. http://download.java.net/jdk9/jfxdocs/javafx/scene/control/TextFormatter.Change.html
Moe
  • 1,427
  • 4
  • 34
  • 54
13
votes
1 answer

JavaFX eats my memory?

Before going frustrated about the title, I would like to clear out that I am a fresher on JavaFX UI. I have been a developer for 9 years, using Swing and currently I decided to give a try to the JavaFX. Examples on the net shows that JavaFX really…
javasuns
  • 1,061
  • 2
  • 11
  • 22
13
votes
2 answers

When to use translate and when relocate - What is the difference between translate and layout coordinates?

When to use translate and when relocate in order to move a node? In the end of the day it seems they do the same thing (visually); move the node; the first by doing a translation on the origin (the x, y stays the same), the second by changing the…
C.LS
  • 1,319
  • 2
  • 17
  • 35
13
votes
6 answers

How do I get all nodes in a parent in JavaFX?

In C# I found a method that was pretty sweet that allowed you to get all the descendants and all of THEIR descendants from a specified control. I'm looking for a similar method for JavaFX. I saw that the Parent class is what I want to work with…
Will
  • 3,413
  • 7
  • 50
  • 107