Category: JavaFX

  • JavaFX 2 with JPA 2 and Drag and Drop – Part 3

    This article will cover a method that can be used to include more than one entity type in a tree (the same system will work for other widgets such as lists and tables) by using a proxy holder. The previous articles in this series covered setting up the demo application and getting started with JPA.

  • SampleFX – Updating a Label

    The humble label is probably one of the most used widgets in the UI designers toolkit so getting to know it inside and out is important. A common task it is to update a label to display some new information depending on the state of the application. Depending on where that new information comes from…

  • SampleFX Mini-Demos

    I’ve taken a short break from the JavaFX and JPA series of articles because I wanted to start a new project that demonstrates common day to day tasks in JavaFX. I’ve called this project SampleFX5 and you can download it here.

  • JavaFX 2 with JPA 2 and Drag and Drop – Part 2

    In the first part of this series I gave an over view of the project and how to install and run it. Now I’ll cover the JPA aspects of the project.

  • JavaFX 2 with JPA 2 and Drag and Drop – Part 1

    After a bit of a break away doing other things I’m back on a project that uses JavaFX 2. So far this project hasn’t required much in the way of persistence either for settings or data but a new feature I’m working on makes use of a database. I use JPA 2 for web based…

  • Controlling Tab Order in JavaFX2

    I, as I suspect you also do, use the JavaFX Scene Builder to put together your JavaFX interfaces. There’s certainly still work to be done on Scene Builder but even now I prefer it to any of the GUI builders I’ve used in the past for the principal reason that what you see on the…

  • Editing Null Data Values in a Cell with JavaFX 2

    In an earlier article I gave a complete break down of how to write a generic editable table cell. I’ve found versions of this code posted around the place so I thought it was only right that I point out a small flaw and a fix that I believe is safe.

  • Missing FXML File

    I was recently copying some code from one project to another (yes, we all do it) and I hit a problem – it wouldn’t run. The error message was less than useful as shown below.

  • JavaFX 2 Generic Editable Table Cells

    A few days ago I wrote an article which gave a more complete example of editable table cells in JavaFX 2.0. In that article I promised another article discussing how to make generic editable tables cells since the first article just expected everything to be a string. I’m fairly happy with this solution to the…

  • Complete JavaFX 2 Editable Table Example

    The JavaFX 2 documentation is generally very well written but I found the discussion of the TableView component to be slightly lacking. It demonstrates the construction of a basic table with multi-level column headers and it shows the most basic example of editing. Any real application will want a much more complete handling of cell…

  • JavaFX 2.0 and Maven – Part 4

    The final part of the Maven JavaFX build is getting NetBeans to correctly run the application. This, it turns out, is more difficult than I expected. This discussion covers a the problems quite well and is worth a read. I will admit up front that the solution I give here is not pretty, in fact…

  • JavaFX 2.0 and Maven – Part 3

    This (hopefully) final instalment of this series of articles on building JavaFX applications with Maven will refine what was done in the previous article. The previous article got us to the point where we were able to build a stand alone JavaFX application this article aims to do that with flare and produce roughly the…