File Drop Handler in JavaFx

‘Drag and drop’ is not supported in a standard way in JavaFx 1.3.1 . However, there are some functions that work with Swing toolkit which enable the target resource to know that something thing has been dropped over it. Several objects can be dragged simultaneously and the objects can be in different formats like normal [...]

Creating table renderers in JavaFx

In this post, you’ll learn to create your custom renderer for a cell or a header of a table in JavaFx. A table which is apparently a swing JTable wrapped in a node of JavaFx using SwingComponent class. In the following application I’ll not only use these renderers, but will also provide solution to the [...]

JavaFx clean code

The declarative nature of JavaFx code often results in an ugly, untidy and lengthy files which are quite overwhelming at times. It’s very easy to let things written-on in JavaFX script unless it gets impossible to follow such deeply nested code as it is not easy to figure out what goes with what. Though we [...]

Scrolling text in JavaFx

If you want to have Marquee effect i.e automatic scrolling of text from left to right or down to up in JavaFx, you need to write a custom component of your own. Using a Marquee tag of HTML doesn’t work, if you try to use directly in a label text or a swing component in [...]