Questions tagged [javafx-2]

OUTDATED - DO NOT USE FOR GENERAL JAVAFX QUESTIONS! JavaFX 2 provides a Java-based UI platform for creating standalone or browser-based Rich Client Applications. Its Java API enables Java developers to leverage existing skills and tools. The next version - JavaFX-8 was released March 18, 2014.

Useful resources:

JavaFX links :

Testing JavaFX-2 applications :

OpenJavaFX links :

JavaFX Scene Builder links :

Blogs and news sites about JavaFX :

Projects, complementing and extending basic functionality of JavaFX :

Books about JavaFX 2 :

Personal blogs, by people, who write about JavaFX :

Use javafx-8 tag for questions, related to javafx-8 (or javafx-3 - previous name), which will be released as part of JDK-8 - the sequel of javafx-2.

4858 questions
19
votes
3 answers

ComboBox FXML default value

How can I set a default value in a ComboBox using FXML?
Perneel
  • 3,317
  • 7
  • 45
  • 66
19
votes
3 answers

How to make a executable file of JavaFX 2.0 project?

I want to make a executable file of my project which I made in JavaFX 2.0. Can anyone help me with this?
Bipin Bhandari
  • 652
  • 4
  • 9
  • 23
18
votes
4 answers

Execute task in background in JavaFX

I want to load up to nine panels in a TilePane. For each pane I have to first run a computation of the content (about 300ms) and then I have to build the Panel (about 500ms). What I want is, that there are nine ProgressIndicators which exchanges…
Yggdrasil
  • 1,377
  • 2
  • 13
  • 27
18
votes
5 answers

How can I make a TextArea stretch to fill the content, expanding the parent in the process?

So I have a TextArea and as the user pastes paragraphs into it, or just writes in it, I want it to expand vertically to reveal all the available text. I.e. not to use a scrollbar in the text field itself... much like what happens on many web pages.…
Daniel Gerson
  • 2,159
  • 1
  • 19
  • 29
18
votes
5 answers

Combo-box select item in JavaFX 2

I have one [JavaFX] ComboBox that is populated with countries. My object: public static class CountryObj { private String TCountryDescr; private String TCountryCode; private CountryObj(String CountryDescr,String CountryCode)…
Elias Elias
  • 419
  • 3
  • 6
  • 10
18
votes
2 answers

How to write text along a Bezier Curve?

I am looking to do something like this in javafx 2.2 or at least in javafx 8. I browsed the Text javadoc and css reference without results. It is possible to do this effect by displaying and svg in a WebView. But my application have to display a…
gontard
  • 28,720
  • 11
  • 94
  • 117
18
votes
1 answer

Use JavaFX to develop Intellij IDEA plugin UI

As a result of a custom Intellij action plugin developer can popup a dialog window with a custom UI. I am developing UI using JavaFX embedded into Swing panel. JavaFX wise everything works fine. The problem is plugin class loader. It can't find any…
Mykola Golubyev
  • 57,943
  • 15
  • 89
  • 102
18
votes
2 answers

Javafx PropertyValueFactory not populating Tableview

This has baffled me for a while now and I cannot seem to get the grasp of it. I'm using Cell Value Factory to populate a simple one column table and it does not populate in the table. It does and I click the rows that are populated but I do not see…
Nepze Tyson
  • 587
  • 2
  • 7
  • 16
18
votes
2 answers

How to use Spring with JavaFX ?

I am using javaFX with Scene Builder in my project and I have many pages. I want to avoid complexity, that's why I want to use Spring framework. So please can anyone explain to me in details how to configure JavaFX with spring framework?
vijayk
  • 2,633
  • 14
  • 38
  • 59
18
votes
6 answers

Cannot load image in JavaFX

I tested this code in order to create dialog with image. final int xSize = 400; final int ySize = 280; final Color backgroundColor = Color.WHITE; final String text = "SQL Browser"; final String version = "Product Version: 1.0"; final Stage…
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
18
votes
3 answers

JavaFX on Linux

What is the situation with JavaFX on Linux (x86 and x64)? Can a JavaFX app be executed without problems on Linux OS? I have found some questions from years 2011 and 2012, when apps were not stable!
Jurica Krizanic
  • 1,072
  • 2
  • 11
  • 26
18
votes
9 answers

JavaFX 2.2 TextField maxlength

I am working on a JavaFX 2.2 project and I have a problem using the TextField control. I want to limit the number of characters that a user will be able to enter into each TextField. However I can't find a property or something like maxlength. The…
Georgios Syngouroglou
  • 18,813
  • 9
  • 90
  • 92
18
votes
4 answers

How can I do some action when one specific Tab is selected using Javafx

I'm trying to do something when one tab of my tabPane is clicked, I've tried use Action Event but it doesn't work: public void tabPressClicked (ActionEvent event){ comboBoxPresYear.setVisible(true); lblPresYear.setVisible(true); …
Victor Laerte
  • 6,446
  • 13
  • 53
  • 102
18
votes
2 answers

Return result from javafx platform runlater

I am working on JavaFX application, in my scenario is to show a password prompt created in JavaFX which takes password with two option OK and Cancel. I have returned the password entered by user. My class of showing password dialog is - public…
Neelam Sharma
  • 2,745
  • 4
  • 32
  • 73
18
votes
2 answers

Custom drop-in icons for DMG background for application packaging on MacOSX

I'm having trouble adding custom icons for a DMG background in a self-contained package built on MacOSX. I have added a package in the root directory of my project. The custom icon is getting loaded from it, but the DMG background icon isn't. I am…
Sumodh Nair
  • 1,656
  • 1
  • 11
  • 34