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

How to execute code during a drag and drop operation?

I have a node I want to implement drag and drop for (this object is the source not the target). I also want the object to move along with the mouse cursor. I managed to do both of these but not at the same time. It appears that setOnDragDetected and…
Mark
  • 2,167
  • 4
  • 32
  • 64
2
votes
1 answer

javafx ListView with custom cell factory not retaining the selected cell

I have a controlsfx CheckListView (even same issue with javafx ListView control) where i want to display RadioButtons instead of CheckBox. So i implemented custom cell factory by taking help from few javafx tutorials, and it is working. The problem…
Saravana Kumar M
  • 460
  • 9
  • 19
2
votes
0 answers

Scrolling issue in JavaFX ListView

I'm developing desktop application using JavaFX. I have a ListView with a custom CellFactory. Each cell contains multiple nodes: Button, TextFlow, Image etc. So here's a problem: when I am trying to scroll using mouse wheel - everything works…
Dmitrii Z.
  • 2,287
  • 3
  • 19
  • 29
2
votes
1 answer

rotating image in Javafx

With what reference point does ImageView.setRotate(40) rotates the image in Javafx ? I am writing ImageView iv = new ImageView(image); iv.setRotate(40); SnapshotParameters params = new SnapshotParameters(); params.setFill(Color.TRANSPARENT); Image…
Tanuj Yadav
  • 1,259
  • 13
  • 21
2
votes
1 answer

How do you hide elements in a GUI right after you run the JavaFX container class?

For one of my Java Projects, I am using JavaFX in order to make a cash register. To see the picture of the GUI, please click here. As shown in the GUI, the program will ask for user input to find many items the user bought, how much the user paid,…
Sammy Vargas
  • 63
  • 1
  • 8
2
votes
1 answer

Responsive UI-Design with a TilePane in a ScrollPane

I am trying to wrap my head around Scroll- and Tilepanes atm, and I have come upon an issue I just cant solve without a dirty hack. I have a horizontal TilePane that has 8 Tiles, and I set it to have 4 columns, resulting in 2 rows with 4 tiles. That…
2
votes
2 answers

JavaFX - Cannot load image from within project

My JavaFX project can load image in one machine, but same code cannot load the image in another machine. I have the package structure (in src) - /com/mypackagestructure/view/images/ and this holds the image file. I have the CSS file at -…
iMan
  • 456
  • 1
  • 7
  • 18
2
votes
1 answer

How to add padding between TitledPanes in an Accordion in JavaFX

I would like to add padding between TitledPanes in an Accordion (spacing in Accordion). The problem is that, when a TitledPane is expanded, the look and feel of the next TitledPane is broken. TitledPanes unexpanded One TitledPane expanded I have…
2
votes
1 answer

How To Iterate data from Tableview to Export it to Microsoft Excel?

I need help in iterating data from table-view to export it to excel, every time i press a button it just displays the first row data from the table-view on my excel sheet. I hope you are getting what am saying this is my code package…
lemmy njaria
  • 81
  • 1
  • 5
  • 13
2
votes
2 answers

Javafx TreeView Directory Listing

I'm trying to create a TreeView which displays directory contents such as: ABC BCD 123.php Where ABC and BCD are both directories. I feel like I'm missing something as the TreeView works fine before I strip out the full directory location…
user1406186
  • 940
  • 3
  • 16
  • 28
2
votes
1 answer

What is use of getNormals() method in TriangleMesh JavaFX

I am currently working of JavaFX 3D application and come across getNormals() method in TriangleMesh class. As in TriangleMesh class is used to create user defined Java FX 3D obejct and in that getPoints() is used to add PointsgetFaces() is used to…
PrashantP
  • 182
  • 1
  • 12
2
votes
0 answers

JavaFX: How to bind TextField with ObservableList and update those data into tableview?

Trying to make a dictionary using JavaFx. Here is my Controller class- public class MainUIController implements Initializable { DatabaseManager db=new DatabaseManager(); ObservableList MeaningList; @FXML private…
Abdullah Al Imran
  • 1,166
  • 2
  • 17
  • 30
2
votes
1 answer

How to show Image as tooltip in JavaFX?

I would like to show an image as a tooltip. It works OK but at some random points it shows fluctuation. I want to show it normally without getting fluctuate. I show a new scene (in which i added my image-view with image) on mouse enter event and…
Amita Patil
  • 1,310
  • 2
  • 14
  • 22
2
votes
1 answer

JavaFX with ProJavaFX 2, underlined imports

I've bought a pro Javafx2 book and I tried to compile the first program from this book. The problem is that a few imports are underlined, as they can't be found. These are the problematic import statements: import…
Karol.T
  • 65
  • 1
  • 9
2
votes
0 answers

JavaFX - PriorityQueue and Threads

I have an JavaFx application that has no stage. It only runs at system tray. Basically it listen to a service and show notification according to it. The connection between app and service is done using Socket. However, service can send a priority…
Leonardo
  • 1,263
  • 7
  • 20
  • 51
1 2 3
99
100