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
15
votes
7 answers

How to enable commit on focusLost for TableView/TreeTableView?

Is there any simple approach to let the TreeTableView (or TableView) try to commit values on focus lost? Unfortunatly I didn't succed with any default-implementations of javafx TableCellFactories, which is why I tried my own TreeTableCell…
crusam
  • 6,140
  • 6
  • 40
  • 68
15
votes
6 answers

JavaFX: can you create a stage that doesn't show on the task bar and is undecorated?

I'm trying to create a stage that doesn't appear on the Windows task bar and is undecorated (no borders and no close/minimize/maximize buttons). My end goal is to create a tray icon application that will pop up notification windows. It's similar to…
dejuknow
  • 1,541
  • 2
  • 14
  • 30
15
votes
4 answers

Show Tooltip on disabled Control in JavaFX

It is possible to show a Tooltip on a disabled Control? I have the following code and this doesn't work: txt_searchText.setDisable(true); txt.searchText.setTooltip(new Tooltip("Message")); Has anyone a solution for that problem? Thx
Flagman
  • 416
  • 6
  • 24
15
votes
4 answers

Javafxpackager: how do you set the "base JDK"?

When I run javafxpackager, I get the following warning/info: No base JDK. Package will use system JRE. It's not clear from the docs for Deploying JavaFX Applications how one would specify an alternative JDK. There isn't an option for it, that I…
pfurbacher
  • 1,789
  • 3
  • 15
  • 23
15
votes
2 answers

How can I style a JavaFX menu and its items in CSS?

I've got a MenuBar that is setup as follows in FXML:
crush
  • 16,713
  • 9
  • 59
  • 100
15
votes
4 answers

How to make an animation with CSS in JavaFX?

I want to change the style of Node by changing its style class. Button button = new Button(); button.getStyleClass().add("class1") button.setOnMouseClicked(new EventHandler() { @Override public void handle(MouseEvent…
Eugene
  • 1,037
  • 4
  • 20
  • 34
14
votes
1 answer

JavaFX scrolling table update performance degrades over time

I have a TableView that shows last N items, new items at top, remove items from the bottom etc... What appears to be happening is CPU load increases over time to point where other X applications on same machine become sluggish. Platform details:…
Adam
  • 35,919
  • 9
  • 100
  • 137
14
votes
4 answers

JavaFX LineChart Performance

I've been trying to improve the performance of LineChart in JavaFX but without great success. I also have found that this seems to be a common problem that some programmers have found when trying to display big data (big here stands for datasize >…
14
votes
4 answers

JavaFx 8: open a link in a browser without reference to Application

Have got a Hyperlink. When clicked I want a link to be opened in an external browser. The usual method cited on the web seems to be: final Hyperlink hyperlink = new Hyperlink("http://www.google.com"); hyperlink.setOnAction(t -> { …
Ben
  • 6,567
  • 10
  • 42
  • 64
14
votes
3 answers

JavaFX default focused button in Alert Dialog

Since jdk 8u40, I'm using the new javafx.scene.control.Alert API to display a confirmation dialog. In the example below, "Yes" button is focused by default instead of "No" button: public boolean showConfirmDialog(String title, String header, String…
thibault
  • 379
  • 1
  • 3
  • 13
14
votes
1 answer

Remove all children from a group without knowing the containing nodes

check this out Group g = new Group(); GridPane grid = new GridPane(); // g.getChildren().addAll(grid); now my question is how do i remove this "grid" from "g" without specifying "grid" like something like this g.getChildren().removeAll(null);…
user4279125
14
votes
1 answer

ICON set for JavaFX application is visible in Windows but not in Ubuntu

It is a bit weird or maybe there is something wrong with my code. I am setting JavaFX application ICON which is very well visible on Windows system but not on Ubuntu. On Windows: On Ubuntu: Any idea about the reason behind this. Code…
Indigo
  • 2,887
  • 11
  • 52
  • 83
14
votes
2 answers

JavaFX buttons with same size

I have these buttons with different size: Image How I can make all buttons with same with size?
user1285928
  • 1,328
  • 29
  • 98
  • 147
14
votes
6 answers

How to use font awesome in a fxml project (javafx)

I want to use font font awesome in my project but I have no idea how to use font awesome in my project. I had found some example but they can't be use in fxml. font awesome javafx I need help how to use it in my project using fxml Thank you.
user3749316
  • 182
  • 1
  • 1
  • 14
14
votes
2 answers

JavaFX: bind disable property of a button to ObservableList size

I have a TableView and I would like to bind the disable property of a Button with the size of the ObservableList model of the table. In particular, I would like to disable the button when the size of the ObservableList is grater than 2. How can I…
Giorgio
  • 1,973
  • 4
  • 36
  • 51