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
13
votes
3 answers

FXML Load exception

I got a problem that I absolutely can't solve on my own because I have just started using JAVA FX. I get a nasty javafx.fxml.LoadException: , but I have done exactly like a guide, but I cant get my Main to run. This is the the exception…
jabbeboy
  • 289
  • 2
  • 5
  • 14
13
votes
3 answers

Add touch gestures to legacy swing application

I have a legacy swing application that I need to add touch gestures to,specifically pinch to zoom and touch and drag. I tried the SwingNode of JDK 8 and I can run the swing application there, but the display performance was cut by more than 50%…
davidethell
  • 11,708
  • 6
  • 43
  • 63
12
votes
1 answer

Avoiding short stutter in animation when loading in/displaying FXML

When loading in a new FXML and setting the center of a BorderPane there is a brief 'freeze' of the application where existing animation, whether from a Timeline, or from a gif in an image view, will stop. I'm using this code to change the…
AlwaysNeedingHelp
  • 1,851
  • 3
  • 21
  • 29
12
votes
9 answers

Set divider position of SplitPane

I want to set the divider of a SplitPane to a certain default position. This does not work, the divider stays in the middle: public void start(Stage primaryStage) throws Exception{ SplitPane splitPane = new SplitPane(new Pane(), new Pane()); …
Midgard
  • 382
  • 1
  • 2
  • 12
12
votes
3 answers

How do I get buttons to fill a javafx gridpane?

Java Swing has GridLayout, which allows you to specify a size for an array of widgets such as 3X4. The widgets then fill the panel they occupy. How do you get a similar effect in JavaFX?
ncmathsadist
  • 4,684
  • 3
  • 29
  • 45
12
votes
5 answers

JavaFX Application with Maven in Eclipse

I want to ask if there is any method to add JavaFX into Maven Archetype list in Eclipse or any plugin to use Maven to build JavaFX Application.
Einsamer
  • 1,069
  • 4
  • 17
  • 34
12
votes
1 answer

Callback and extractors for JavaFX ObservableList

Here is the code: package sample; import javafx.beans.Observable; import javafx.beans.property.IntegerProperty; import javafx.beans.property.SimpleIntegerProperty; import javafx.collections.FXCollections; import…
qed
  • 22,298
  • 21
  • 125
  • 196
12
votes
2 answers

How to display HTML in JavaFX Application

I am developing a FontViewer application which changes the font of the text based on the selected font style. This is the controller class of my application public class FXMLDocumentController implements Initializable { @FXML private…
Sai Upadhyayula
  • 2,404
  • 3
  • 23
  • 35
12
votes
3 answers

JavaFX - How to create SnapShot/Screenshot of (invisble) WebView

I want to create a SnapShot/Screenshot/Image from a WebView in JavaFX(8).This WebView does not need to be visible (in my case). My question: Is it possible (in any way), to create a Screenshot/Image from a WebView, when the WebView is not visible…
Ben
  • 3,378
  • 30
  • 46
12
votes
4 answers

Loading custom font using JavaFX 8 and css

The Problem I'm creating a Super Mario themed css style sheet for my application, and I want to change the font of my buttons to a custom font called Press Start 2P, which is the pixelated font used in the NES Mario games. However, my application's…
gameCoder95
  • 349
  • 1
  • 5
  • 19
12
votes
3 answers

JavaFX - How to make ComboBox hgrow?

I have a problem with JavaFX(8), HBox, ComboBox and HGrow. HGrow does not work in combination with ComboBox. (INFO: with TextField (instead of ComboBox), it works as expected!) This is my FXML-Code:
Ben
  • 3,378
  • 30
  • 46
12
votes
2 answers

JavaFX Self Installer With Inno Setup 5 - Allow user to change install directory

I am using Ant to build a self deploying EXE for a JavaFX application. Currently Inno Setup places the EXE here: C:\Users\username\AppData\Local\application name I would like to place this in a different location, and provide the user the option to…
purring pigeon
  • 4,141
  • 5
  • 35
  • 68
12
votes
3 answers

Headless testing with JavaFx and TestFx

I have a simple JavaFx application (Java 8) that has a unit test using TestFx. However, when the test is run, the application window starts up and the mouse is moved to do whatever action is in my test. Can these tests be run in a way where the…
yellavon
  • 2,821
  • 12
  • 52
  • 66
12
votes
1 answer

Javafx Not on fx application thread when using timer

I'm using this import java.util.Random; import java.util.Timer; import java.util.TimerTask; import javafx.application.Application; import javafx.application.Platform; import javafx.scene.Group; import javafx.scene.Scene; import…
Kiraged
  • 519
  • 2
  • 9
  • 28
12
votes
2 answers

How can I add rows and columns to a JavaFX 8 TableView

I see examples on the internet for adding a row to a TableView, for example using the Person class in the Oracle documentation. But I have a variable number of columns, so I can't bind to a Person (or any other) bean business object. The Oracle…
Victor Grazi
  • 15,563
  • 14
  • 61
  • 94