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

how does javafx main method launch(args) work?

The methods outside the main method are not mentioned in main method. The main method only contain launch(args); I thought it need to call the methods outside the method that make it work in the program? So how does launch(args) work?
user2709845
  • 101
  • 1
  • 1
  • 5
10
votes
1 answer

Saving a javafx.scene.canvas with transparent Pixels

I'm trying to write a simple "Paint"-like JavaFX-Application. I draw on to a JavaFX.scene.canvas, this works quite well. Now I want to save this canvas as a ".png" image. Works, but the transparent pixels where swapped with white ones. How do I save…
MrEbbinghaus
  • 963
  • 7
  • 15
10
votes
1 answer

JavaFX Make object visible but not consume (ignore) clicks

Title says it all: I have a rectangle in JavaFX (for transparency/opacity effects) yet I want people to be able to 'click through' it. So when I say click through, I mean when you click it, Java should pretend it isn't there and instead 'click' on…
SuperMrBlob
  • 611
  • 6
  • 19
10
votes
2 answers

How to set/remove insets in JavaFX TitledPane

I've created a TitledPane in JavaFX with a single child component (a button) as follows:
PhilDin
  • 2,802
  • 4
  • 23
  • 38
10
votes
3 answers

JavaFX: How can I display Emoji?

I've been struggling with this problem a lot now and I can't seem to figure it out. I need some way of displaying Emoji's (as in WhatsApp) in a JavaFX Application. I tried it with awt and Swing and I haven't had any success now (EDIT: swt works but…
Kametrixom
  • 14,673
  • 7
  • 45
  • 62
10
votes
4 answers

JavaFX8 - sun.util.logging.PlatformLogger not found Exception in NetBeans 8

I have recently installed JDK8 + Netbeans8 (downloaded the bundled setup from Oracle site) on my Windows 8.1 machine. When I create a very simple JavaFX FXML application, it works fine. However when I add a new database entity class using the wizard…
A J Qarshi
  • 2,772
  • 6
  • 37
  • 53
10
votes
1 answer

Javafx combobox styling

I need a combobox in javaFX whose popup behavior can be controlled, like upon clicking the combobox, instead of default behavior where it shows a drop down, i want the drop down to be shown above the combobox (insetad of display below the combobox)…
Dil
  • 628
  • 2
  • 9
  • 21
10
votes
2 answers

Get key combination code of multiple keys

I want to ask you can I get key code combination of multiple keys. For example I can get the key code from this example: public void handle(KeyEvent event) { if (event.getCode() == KeyCode.TAB) { } } But how I can get the key code of this…
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
10
votes
5 answers

How can I bypass the JavaFX's TableView "placeholder"?

JavaFX's TableView has a placeholder property that is basically a Node that gets displayed in the TableView whenever it is empty. If this property is set to null (its default value), it appears as a Label or some other text based Node that says…
Xanatos
  • 1,576
  • 18
  • 28
9
votes
4 answers

How to wrap a swing component in a javaFX 2.0 application

The ability to wrap a swing component in a javaFX application seems to have vanished from javaFX 2: javafx.ext.swing.SwingComponent is not there any more in javaFX 2 beta API. Is there still a way to do this in the new API?
jumar
  • 5,360
  • 8
  • 46
  • 42
9
votes
1 answer

JavaFX button with svg

I have this SVG: M421.985,229.833L217.847,25.981c-7.235-7.238-16.94-13.374-29.121-18.416C176.541,2.522,165.407,0,155.318,0H36.547 C26.648,0,18.083,3.619,10.85,10.848C3.617,18.081,0.002,26.646,0.002,36.545v118.771c0,10.088,2.519,21.219,7.564,33.404 …
Patrik Bak
  • 528
  • 1
  • 7
  • 14
9
votes
1 answer

Is there an equvalent of enum property type in javaFX?

I want to observe changes made in some field of some java bean class. This field is enum type. To bind the field and corresponding ui control I am going to use PropertyChangeListener as described here But it seems that javaFX does not have an…
rvit34
  • 1,967
  • 3
  • 17
  • 33
9
votes
4 answers

JavaFx 8 - Scaling / zooming ScrollPane relative to mouse position

I need to zoom in / out on a scroll pane, relative to the mouse position. I currently achieve the zooming functionality by wrapping my content in a Group, and scaling the group itself. I create a new Scale object with a custom pivot. (Pivot is set…
haz
  • 2,034
  • 4
  • 28
  • 52
9
votes
0 answers

JavaFX scene recording

Yesterday as I was working on my game and I decided I wanted to include some sort of a video showing sneak peaks of the themes and tutorials and such. I then decided to check how to record my scene or nodes. After looking around i concluded there…
Eudy Contreras
  • 396
  • 3
  • 10
9
votes
2 answers

Spinner bind to IntegerProperty

I want to use a FX8 Spinner control, but I want to bind the source to an IntegerProperty int MIN = 0; int MAX = 5000; int STEP = 500; IntegerProperty integerProperty = new SimpleIntegerProperty(); Spinner spinner = new Spinner<>(MIN, MAX,…
SeeMoreGain
  • 1,263
  • 16
  • 36