Sunday, July 26, 2009

Project Management System using JavaFX and db4o

When I run into Sun's JavaFX sample applications section I saw one example that particularly caught my attention, a sort of simplified project management system. What I found interesting is that it looks like this native GUI could also be used under JavaFX's mobile profile and, most importantly, that the authors created a mock data access layer (accessing only in-memory collections) leaving room for easily plugging in my favorite (JavaFX compatible) object persistence engine: db4o =)

With the help of Dama (my wife) we changed the original data handler to include db4o and wanted to share this sample with you. We used db4o v7.9 which is accessed straight from JavaFX (if you want to learn more about the limitations of db4o under JavaFX I suggest you read Patrick's blog post 'db4o with JavaFX').

If you want to use db4o in your JavaFX application you're adviced to reuse Db4oFX.fx (available in the download bundle below) to save yourself some time (it's a sort of JavaFX API to db4o) which in turn uses Reflex.java (for some reflection magic). The data handler for this application (which benefits from these utility classes) is called DataHandler.fx.

Thanks to Praveen Mohan & Elancheran for sharing the original sample.

Download Sample

1 comments:

Pragun said...

I am very much interested in JavaFX<-->DB4O for my next Handheld device project for Retail Industry and you provided a great help.

Thanks for sharing your valuable efforts :)