Sunday, February 15, 2009

Netbeans 6.5

So i am using Netbeans 6.5 for a small Swing based tool. The Swing GUI editor is really nice...the best i have ever seen. Very simple to use and the code it generates is not the usual nasty spaghetti code GUI designers usually spit out. However i hit a major problem.

I create a JFrame and drag and drop some components and begin to frame out the way i want things to look. Rather than have all my code in one monolithic Class, i decide to separate out one of my JPanels into a separate Class. Okay, i now have my first Component only to find there is no way to add it to the Component palette. Huh?

After some research i find out i need to make it into a separate Jar file to have it show up on my palette. Huh? How am i supposed to get it onto my JFrame? The only way to add my Class which extends JPanel to the JFrame is to manually code it. What the hell is the point of a GUI designer if I have to manually add my GUI components?

I have no idea how this is not part of the product? Are Java Swing programmers really that bad and want all their application code in a single Class? What a let down. I thought Netbeans was going to simplify my life. Back to Eclipse and manually hacking Swing code i go....

No comments: