Articles
Articles
JavaFX Programming with JavaDB
Friday, April 9, 2010
The promises of JavaFX include the ability to quickly and easily create Java GUI applications; run on desktops and mobile devices without changing source code; and the integration of Java code. With it, you can build media-rich applications with far less code than you would with Swing, yet you can still call into your existing Java codebase. This includes databases via JDBC as well, but there are some tricks you'll need to know, which we'll explore here.
Assume you've been asked to build a library front-end system to allow patrons to borrow and return books. The requirements include support for multiple operating systems (i.e. Windows, Mac OS X, and Linux). Java helps to solve that easily, and the addition of JavaFX solves the multimedia requirements as well (such as support for book cover photos, 30-second music samples, and video clips from movies). For our solution's UI, we'll choose JavaFX. The sample code I examine won't include the multimedia features; instead I focus on JDBC integration.
Click here to continue reading on Dr. Dobb's online…
Copyright @ 2003 - 2010 Eric Bruno