Now and again someone will ask me how you can search records in a desktop database app. Here's a reasonably simple way to do so, using mechanisms that exist in Swing and the Beans Binding library. We will create a binding between the rowSorter property of the master table in the example in my previous entries and a text field that I've just added for the search string. For this binding we will...
on Jun 5, 2008
Four years ago, I went on a hunt for best practices for doing tree table components in Swing. We had a tree-table component in NetBeans, whose maintenance was my never-ending nightmare and the biggest source of bugs on my bug list. It had been written, with the best of intentions, based on Scott Violet's Swing Connection article about how to quickly hack up a tree-table component in Swing (...
on Jun 3, 2008
JPA is a very good tool for simplifying the task of performing queries
and updates to a relational database while keeping the Java code as
much object oriented as possibile; but one of the tasks that are not
covered is the standard
maintenance of the database, such adding or dropping
columns from an existing table, or renaming a table or a column because
something has been changed in the...
on May 29, 2008
This is the fourth in a series of posts on creating a Java database application. In my last few posts, I started with skeleton code generated by the IDE and provided my own customizations, including adding a dialog to use for data entry and binding those fields with a table on the main form. In this post, I finish coding the connection between the dialog and the main form. I'll also add an Edit...
on May 27, 2008
Continuing from my last post, I'll show the next steps in the creation of this simple (but not too simple) client purchase application. This time, our main focus is in creating a separate dialog which we will use for data entry. We'll need to do a few tricks so that input from the dialog is propagated to the main form and then the database.
But first we'll need to clear up a few loose ends. As I...
on May 21, 2008
on May 20, 2008
Netbeans is well known for beeing a great IDE for developing Java SE, Java EE, C++, Java ME, Sun SPOT, Ruby on Rail, PHP, Groovy, ... but NetBeans has more to offer when it come to developing highly modular desktop applications. The desktop application can be from any possible category like Business oriented, scientific, utilities, development tools, entertinement, etc. You can find a list of...
on May 20, 2008
Recently I've found time again to work on actual tutorials. I don't have anything written yet, but I have something resembling a plan, which you can find here: http://wiki.netbeans.org/PlanGuiBuilderDocImprovements.
Over the next few weeks, I'll be blogging about creating a Swing desktop application with database connectivity. These postings will essentially serve as a rough sneak preview of a...
on May 13, 2008
The NetBeans community approved and released NetBeans 6.1 last week. That's right before JavaOne 2008. That's convenient! And of course, some of the JavaOne demos have NB 6.1 running in the background. If you're at JavaOne, you can't escape it. NetBeans 6.1 is here.
The latest NetBeans 6.1 has improved in these areas:
CRUD support for quick...
on May 6, 2008
The ability to drag and drop has been a staple of desktop applications for years. With the advent of Ajax, the ability to drag and drop has now found its way to web applications. In this entry I spice up the blogging application we've been building with the ability to drag comments to the trash. This is an appropriate feature to add as our own blogs here on java.net have been prone to spam...
on Apr 18, 2008
Actually, I don't know what this feature is called, but I love it when a web application gives me instant feedback on the validity of my entry. For example:
This is especially true when I'm registering a new user account - submitting the page over and over again because the username I've selected is already taken or the password doesn't meet the requirements is always a drag.
on Apr 16, 2008
NetBeans (6.1) Page Flows may be a small step towards Model Driven development: Read more here.
on Apr 14, 2008
We shot some video on our recent whirlwind tour of South America. This fun video shows one of our adventures. What do technology evangelists really do for a living? Ride in taxis and buses, of course!
BTW, the video editing and post-production was done by my good friend and music buddy Doug Finn (douglas dot finn at gmail). He is a supremely talented video editor, actor, director and...
on Apr 11, 2008
Recently I mentioned a potential problem when saving source files in a non-Unicode charset encoding. The potential data loss is significant for large projects. After thinking about the problem a little more, I have a potential solution, a solution that allows you to save to a non-Unicode encoding but also prevents data loss.
You are familiar with \u notation for non-ascii characters in property...
on Apr 5, 2008
A long time ago I have developed a plugin to NetBeans to graphically configure netbeans.conf file. The plugin is "NetBeans Startup Settings".
Use the comments' section to give feedback. Or send me an email claudio @@ dev.java.net
NetBeans plugin portal page
project page at javaforge.com
NetBeans Plugin information
Currently to add or change any NetBeans parameter (font size...
on Apr 2, 2008
Well, this is the sound opinion of a person who has been using it for years. There's no history: Eclipse is just the best tool of its class. I've tried some alternatives, but nothing allowed me to operate quickly and having such a clean result as Eclipse did. Just nothing. And if you're in pain, trying to deliver when operating in the field, maybe in a problematic environment, Eclipse just gets...
on Apr 1, 2008
makes it a snap to build Rich Internet Applications (using...
on Mar 31, 2008
I'm always happy when a company or product adopts Unicode as its charset. I think it makes perfect sense to do so. There are lots of good reasons why standardizing on Unicode is the right thing:
the data charset can represent all modern, useful -- and many not-so-useful -- scripts
charset consistency helps prevent data loss across application boundaries, including those among application,...
on Mar 30, 2008
Well, as an exceptional case I'm going to blog here in italian. The point is that we have an italian mailing list for NetBeans, so it's a pretty local interest.
Dunque, o voi tutti utilizzatori italiani di NetBeans, abbiamo finalmente una mailing list in cui possiamo scriverci nella nostra lingua madre. Questo strumento mi
on Mar 21, 2008
The NetBeans team has started a blogging contest. Simply download the NetBeans 6.1 Beta and tell us your thoughts. What, you're not a blogger? Well, here are some places to get started:
See the blogging contest web site for details on how to enter, ideas for your blog, rules and deadlines.
on Mar 18, 2008