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

Convert Callback into Java 8 Lambda expression

In my current project, I'm working on a rather simple JavaFX GUI containing a TreeTableView. To initialize the View I have the following code. cmdNrColumn.setCellFactory(new Callback, TreeTableCell
NPortmann
  • 93
  • 1
  • 4
9
votes
2 answers

How to span columns of a gridpane manually in javafx?

I am trying to design a layout with gridpane which contains 2 rows and 2 columns. Top-left area and top right area shares width , they both get 50% of it. But in second row i need bottom right area to get 60% of width so bottom left area 40%. I've…
cengha
  • 173
  • 1
  • 2
  • 9
9
votes
4 answers

Bind ToggleGroup bidirectionally in javafx

Imagine having an enum defining mouse-modes: public enum MouseMode { SELECTION, EDITING, DELETING } And imagine having a toggle-group made of 3 buttons: ToggleButton selection = new ToggleButton("Select"); ToggleButton editing = new…
CarrKnight
  • 2,768
  • 2
  • 23
  • 25
9
votes
3 answers

Wait for Platform.RunLater in a unit test

I have a presentation class storing an XYChart.Series object and updating it by observing the model. The Series updating is done by using Platform.runLater(...) I want to unit-test this, making sure the commands in runLater are performed correctly.…
CarrKnight
  • 2,768
  • 2
  • 23
  • 25
9
votes
8 answers

Can not open FXML after a while

I have a problem with my JavaFX Scene Builder v2.0-b14. From time to time, the FXML can't get opened. Even if i remove everything from the FXML except the root. In the taskbar, it looks like this: If i rename the File, i can open the FXML…
Kalaschni
  • 2,301
  • 24
  • 37
9
votes
0 answers

JavaFX8 Font Rendering Issue

I am in the process of porting my JavaFX2 application over to JavaFX8 and I have noticed the text are so badly rendered on JavaFX8, where in JavaFX2 they are fine. See the screenshot below. This issue is very noticeable when the font gets smaller.…
francisOpt
  • 860
  • 1
  • 8
  • 15
9
votes
1 answer

Set Date Picker time format

I have this example of Date Picker. Can you tell me how I can set the date format of the calendar? import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.DatePicker; import javafx.stage.Stage; import…
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
8
votes
1 answer

JavaFX : How to close a sub window without getting focus on main window

I am trying to close a sub window programatically after certain time. This sub window initOwner is set with main stage. But on closing this sub window, the main window is getting focused. Is there any way to close the sub window(programatically)…
Sai Dandem
  • 8,229
  • 11
  • 26
8
votes
3 answers

JavaFX Live Time and Date

I am building currently an application using JavaFx with an extra feature that displays the current date and time in the top corner of the scene. Since I am new to JavaFX, I don't know how to implement this one. I tried to use an old code in swing…
Bryan Reyes
  • 111
  • 1
  • 1
  • 8
8
votes
2 answers

Use JavaFX chart API to draw chart image

I only want to generate a chart image from JavaFX chart API. I don't want to show the app Window, or launch the application(if it's not necessary). public class LineChartSample extends Application { private List data; @Override…
Sawyer
  • 15,581
  • 27
  • 88
  • 124
8
votes
2 answers

How do I minimize a javafx stage on close to the system tray?

I have an application with 2 stages, I dont want users to close the 2nd stage, just iconify it. At present I am using the oncloseRequest handler to minimize the window - secondaryStage.setOnCloseRequest(event -> { …
Darth Ninja
  • 1,049
  • 2
  • 11
  • 34
8
votes
0 answers

JavaFX Fatal error JRE (Oracle Java 8 update 91)

I've been experiencing this strange issue for a while now. I'm making a JavaFX application which has a login screen. The issue is that whenever I press enter after putting in the username and password, I encounter the following fatal error. It works…
UrsinusTheStrong
  • 1,239
  • 1
  • 16
  • 33
8
votes
2 answers

Javafx stage resizeable false and maximized true hides the taskbar

In my JavaFX FXML application when I set resizable to false and maximized to true the window becomes maximized but the taskbar gets hidden. I am using Netbeans 8.0.2 on Windows 7 64 Bit with JDK 1.8.60 In Netbeans I followed the steps to create a…
Dinesh
  • 1,825
  • 5
  • 31
  • 40
8
votes
6 answers

How To Align Ok Button Of A Dialog Pane In Javafx?

I want to align i.e Position CENTER an OK button of a DialogPane. I have tried the below code but its not working. Dialog dialog = new Dialog(); DialogPane dialogPane = dialog.getDialogPane(); dialogPane.setStyle("-fx-background-color: #fff;"); …
Vikas Singh
  • 175
  • 5
  • 19
8
votes
4 answers

Remove padding/margin from JavaFX Label

Is there a way to remove the default space (padding/margin) that JavaFX label adds? I want to get rid of the space displayed between the black lines on the image below: Source code: public class LabelTest extends Application { @Override …
SDS
  • 828
  • 3
  • 17
  • 35