X

Geertjan's Blog

  • November 26, 2012

org.openide.awt.ColorComboBox

Geertjan Wielenga
Product Manager

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: http://bits.netbeans.org/dev/javadoc/apichanges.html, 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.

Join the discussion

Comments ( 3 )
  • guest Friday, February 1, 2013

    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!


  • Geertjan Friday, February 1, 2013

    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.


  • Geertjan Friday, February 1, 2013

    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.


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha
Oracle

Integrated Cloud Applications & Platform Services