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

Adding borders to GridPane JavaFX

I am creating a board game in JavaFX using GridPane. There are 7 different animations which could be placed in each grid (cell) of the grid. Initially the grid looks like this I tested adding a simple circle to it before programming my animation…
Jeet Parekh
  • 740
  • 2
  • 8
  • 25
9
votes
1 answer

How to show ProgressIndicator in center of Pane in Javafx

I have a Pane with some controls and a button. When I click on the button, I want show ProgressIndicator in center of pane without removing any controls. When I am adding a ProgressIndicator to pane during onAction of button, it adds it below the…
Gaali Prabhakar
  • 583
  • 6
  • 23
9
votes
2 answers

Pick and move a node in a pannable/zoomable Pane

I am trying to place a few components inside a ScrollPane. These components should have the ability to be moved across this pane by mouse (click and drag). The ScrollPane itself is pannable and zoomable. Now if I pick one of them and drag it to a…
Moh-Aw
  • 2,976
  • 2
  • 30
  • 44
9
votes
1 answer

JavaFX : Binding button disable property to ComboBox and DatePicker

My fxml contains a TextField, a ComboBox, a DatePicker and a Button that should only be enabled when the objects above are not empty. @FXML private TextField numText; @FXML private ComboBox societeComboBox; @FXML private DatePicker…
whites
  • 175
  • 1
  • 10
9
votes
2 answers

Alert Box For When User Attempts to close application using setOnCloseRequest in JavaFx

I am trying to prompt the user to confirm they want to close a program before exiting. In the event a task is still being executed, I wanted to confirm that the still wish to exit or give them a chance to allow the task to finish before exiting. I…
user3878223
  • 441
  • 3
  • 7
  • 15
9
votes
2 answers

JavaFX 8 - How to build EXE with Maven & INNO

I have not been able to successfully find a working solution on how to configure Maven to build an EXE from JavaFX with Maven. Projects set up with E(fx)clipse using the build.fxbuild work great, however I would prefer to have a maven project, with…
purring pigeon
  • 4,141
  • 5
  • 35
  • 68
9
votes
1 answer

Multi-Threading error when binding a StringProperty

I have a question about multi-threading and the binding of a StringProperty. I have a class CacheManager, which contains a Thread which updates my cache with the changes on the server. Now, I want to notify the user with a text and percentage of the…
bashoogzaad
  • 4,611
  • 8
  • 40
  • 65
9
votes
3 answers

JavaFX 8 - Zooming Relative to Mouse Pointer

I have been trying to use this example to learn about zooming and scaling. It does a great job of demonstrating scaling. I've been trying to figure out how to change it so that rather than simply zooming on the current center of the view, it will…
RonSiven
  • 939
  • 2
  • 10
  • 23
9
votes
1 answer

JavaFX: Styling application with CSS Selectors

I have a couple of questions about styling a JavaFX application with CSS Selectors (such as: .table-view for every TableView). I have created a main CSS-file, in which I want to define the universal style properties for my application. For example:…
bashoogzaad
  • 4,611
  • 8
  • 40
  • 65
9
votes
1 answer

How does JavaFX 8 start the JavaFX Application thread in a nearly empty Application class?

Lets say, we have the following class: import javafx.application.Application; import javafx.stage.Stage; public class Test extends Application { public Test() { System.out.println("Constructor"); } @Override public void…
Mr. Clear
  • 471
  • 5
  • 13
9
votes
2 answers

Set CheckBoxTableCell in FXML

I currently have a problem with setting a CheckBoxTableCell from the FXML. I tried to convert this code to FXML: tableCol.setCellValueFactory(new PropertyValueFactory
bashoogzaad
  • 4,611
  • 8
  • 40
  • 65
9
votes
1 answer

JavaFX 8, how to hide a pane in Splitpane?

I have a splitpane created from FXML that consists of Three panes left to right. I want to be able to hide the rightmost pane but I can't find anything to hide it. If I turn of the visibility it hides the pane content. What I want is to temporarily…
Backtomusic
  • 251
  • 2
  • 5
9
votes
2 answers

JavaFX TextField CSS

How to create JavaFX TextField look like Android TextField using JavaFX CSS ? For example : I have tried lots of FX css but not achieved look like that . Here http://jsfiddle.net/QKm37/ CSS exist for HTML input type but it is not applicable in…
Gaurav Kumar
  • 323
  • 2
  • 4
  • 10
9
votes
2 answers

Should we use FXML in JavaFX custom controls or not?

It seems wired to ask this, I would think that using FXML to write our custom components is the obviously the right way to go. But as we can see from ControlsFX, JFXextras and even the book 'Mastering JavaFX8 controls do not use or mention the use…
David Limkys
  • 4,907
  • 5
  • 26
  • 38
9
votes
2 answers

Is there a way to compile / load fxml files faster and only one time, and not at every restart of an application?

I have a program which loads many fxml files when executed. The application will be finished in a short time, and loading the application just takes too long. There are many fxml files (20+) and all these fxml files are loaded with Java code. There…
n00b1990
  • 1,189
  • 5
  • 17
  • 25