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
12
votes
5 answers

In JavaFX 8 can I provide a stylesheet from a String?

Is it possible to wrap a whole Stylesheet in a string and apply it to a certain node? Usage case would be to add specific (non changeble) behavior for PseudoClass. I know I can use…
ZioByte
  • 2,690
  • 1
  • 32
  • 68
12
votes
4 answers

Using JavaFX (JDK 1.8.0_05) in Eclipse Luna does not work

I have a fresh install of Java 8 (JDK 1.8.0_05 on Windows 7 32 bit) and Eclipse Luna. When I try to build a simple JavaFX program Eclipse shows the following message in the editor: Access restriction: The type 'Application' is not API('C:\Program…
Klaus Rohe
  • 782
  • 2
  • 7
  • 11
12
votes
1 answer

Is JavaFX 8 going to implement text field validation support?

JavaFX 2 does not provide validation support (masks, input filtering and so on...). It is difficult to adopt a technology that does not offer basic functionalities. I am trying to implement my own validators, but that is a big pain. Are there any…
ceklock
  • 6,143
  • 10
  • 56
  • 78
12
votes
2 answers

JavaFX Editable ComboBox : Showing toString on item selection

I have a ComboBox, of type Person, in which I have added few object of Person class. I have used setCellFactory(Callback) method to show Person name in ComboBox drop down combobox.setCellFactory( new Callback,…
Shreyas Dave
  • 3,815
  • 3
  • 28
  • 57
11
votes
1 answer

JavaFX Italic Font w/CSS

I'm using a CSS style sheet with a style class like this: .sublabel { -fx-font-style: italic; -fx-font-size: 12; } ...which has been set as the Label's Style Class in Scene Builder. The font size changes as expected (smaller, since I…
Manius
  • 3,594
  • 3
  • 34
  • 44
11
votes
1 answer

JavaFX: Apply perspective transformation on a node given a perspective transformed pane

I made a small demo to exemplify the problem I am having. A walkthrough on its use: 1 - Click on the screen four times in order to create the grid. 2 - Click on the button at the bottom to give the created grid the perspective effect. 3 - Click on…
ihavenoidea
  • 629
  • 1
  • 7
  • 26
11
votes
1 answer

Choose which monitor does a JavaFX window open in

I have two monitors. I have Eclipse open on the second monitor but when I run my JavaFX code, the JavaFX window always opens up in the first monitor and every time I have to drag it to the second monitor to use it. I have to do this because when it…
Vivek V K
  • 1,100
  • 2
  • 15
  • 33
11
votes
6 answers

JavaFx Could not load @font-face font because of com.sun.javafx.css.StyleManager loadStylesheetUnPrivileged

I had already asked a similar question here but it seems It wasn't clear since I had a lot of code in the project and couldn't post it here So please don't mark as duplicate. Because of that, I then decided to create a new project with just a Label…
Collins Abitekaniza
  • 4,496
  • 2
  • 28
  • 43
11
votes
1 answer

Preferred height of a control skin containing a wrapped label

I wrote a basic control and its skin. A label is displayed in a HBox in the skin. This label should wrap its text if there isn't enough space. public class LabelWrap extends Application { public static void main(String[] args) { …
gontard
  • 28,720
  • 11
  • 94
  • 117
11
votes
2 answers

Setting Arabic numbering system locale doesn't show Arabic numbers

I read this article: JDK 8 and JRE 8 Supported Locales, it stated that: Numbering systems can be specified by a language tag with a numbering system ID ╔═════════════════════╦══════════════════════╦══════════════════╗ ║ Numbering System ID…
Eng.Fouad
  • 115,165
  • 71
  • 313
  • 417
11
votes
1 answer

ListView with custom content in JavaFX

How i can make custom ListView with JavaFx for my app. I need HBox with image and 2 Labels for each line listView.
NCNecros
  • 2,395
  • 3
  • 16
  • 20
11
votes
2 answers

Please Explain How to Use CheckBoxTableCell

I would like to know more about how to practically use or subclass (if necessary) CheckBoxTableCell. There is one specific case I would like to use this class, whereby the check box doesn't bind to the underlying data model property. Suppose that I…
pntran84
  • 463
  • 1
  • 3
  • 11
11
votes
9 answers

How to prevent TableView from doing TableColumn re-order in javaFX 8?

I read this https://bugs.openjdk.java.net/browse/JDK-8102128 but I haven't found something in the Api of JavaFX 8.There isn't any way of prevent reordering in TableView?
geo
  • 2,283
  • 5
  • 28
  • 46
11
votes
4 answers

JavaFx :Default Message for Empty ListView

When there is no record in any table it shows a message 'No content in table', which is by default functionality of TableView in JavaFx. So here my question is, does the same can be possible with ListView in JavaFx ? Like, if there is no item in any…
Shreyas Dave
  • 3,815
  • 3
  • 28
  • 57
11
votes
4 answers

Get value from Date picker

I want to get the value from JavaFX datepicker and store the value as Date Object: final DatePicker datePicker = new DatePicker(LocalDate.now()); Date date = datePicker.getValue(); grid.add(datePicker, 1, 9); Can you tell me how I can convert…
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808