O'Reilly logo

NetBeans IDE 7 Cookbook by Rhawi Dantas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Connecting your Application to a Database

Creating a Java Desktop application that communicates with a database using NetBeans is a breeze.

From the Project wizard, it is possible to create a basic GUI with the Create, Retrieve, Update, Delete (or CRUD) functionality that accesses a database.

The creation of such an application is simplified by the fact that NetBeans supports, out of the box, both Java Persistence API (JPA) and Beans Binding, besides supporting the Swing Application Framework as well.

The Java SDK 6 and GlassFish Server come bundled with a lightweight database, Java DB, which is a rebranded version of Apache Derby. Our recipes will be using Java DB since it's already bundled with JDK and is registered by NetBeans Services (so long ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required