It's the time of year when a lot of NetBeans Platform tutorials are being reassessed, reviewed, revised, and rewritten. Today I'm looking at the NetBeans Platform Paint Application Tutorial and updating it for NetBeans Platform 7.3.

Suddenly I remembered seeing something in a recent API Changes document about a new class, ColorComboBox. That means I can make the tutorial a lot simpler, since Tim Boudreau's external ColorChooser.jar is now superfluous. Here's what the ColorComboBox looks like:

It works perfectly. Of course, the nice thing about using that JAR was that it showed the user how to incorporate external JARs, but I'll make sure to make a note of that in the tutorial, along the lines of "If you don't like the NetBeans Platform color combobox, and would like to replace it with your own, such as Tim's ColorChooser.jar or a JavaFX color chooser, take the following steps."

In short, if you're using NetBeans APIs, write this on your ceiling above your bed:, check that page regularly (mark it in your calendar to do first thing every Monday morning) and you'll be aware of the latest changes as they happen.


Geertjan Can you please explain me what i am missing..

I followed your whole tutorial above. learning Netbeans platform is so much fun with plenty of challenges for a java developer like myself with basic programming skills.

The problem i have is; There is no such class as ColorComboBox in the org.openide.awt library. I'm using Netbeans 7.2.1 IDE.

My IDE version is up to date.

How can i rectify this, please help!

Posted by guest on January 31, 2013 at 05:23 PM PST #

Well, this blog entry is about NetBeans Platform 7.3. You can see that because that's what it says in the first paragraph as well as in the links in the blog entry.

Posted by Geertjan on January 31, 2013 at 10:25 PM PST #

And the tutorial starts by telling you where to go if you are not using NetBeans IDE 7.3, which is currently available as a release candidate. Stable, why not try that instead.

Posted by Geertjan on January 31, 2013 at 10:26 PM PST #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« July 2016