A tour with Netbeans IDE 5.5
Hmmmm... I never had any project that relates to swing/awt and I crave so much for those. I decided to try out NetBeans IDE 5.5, I'm following an article netbeans themselves provided. Here's the link.
http://www.netbeans.org/kb/articles/form_getstart40.htmlWell... It's not like it's my first time trying out the IDE. We already used this on my first company but I never had the chance to explore it. I have to say it's really really really good. I tried to benchmark the RAM used by the IDE and it seems to eat approximately 153 MB of RAM. It all depends on what you're doing.
There's a lot of things you hav to familliarize yourself with. Although I came from a VB background (I know what you want to say, eeewwww!) and Strong(ehem) OOP background and (Ehem) Java background I still found myself lost for a llittle while there. I think it took me about 10 minutes to actually get comfortable, albeit not so with the IDE. I kinda hate the way Netbeans restricted me on cleaning up my code such as this one...
1 2 3 4 5 6 7 8 9 | private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { if (currentColor == java.awt.Color.lightGray) currentColor = java.awt.Color.gray; else if (currentColor == java.awt.Color.gray) currentColor = java.awt.Color.black; else currentColor = java.awt.Color.lightGray; jLabel1.setBackground (currentColor); } |
which I wanted written as
1 2 3 4 5 6 7 8 9 10 | private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { if (currentColor == java.awt.Color.lightGray) currentColor = java.awt.Color.gray; else if (currentColor == java.awt.Color.gray) currentColor = java.awt.Color.black; else currentColor = java.awt.Color.lightGray; jLabel1.setBackground (currentColor); } |
Netbeans just won't allow me to edit some of its auto-generated code... There must be an option somewhere that disables this...
In the end of the day I'm still one happy coder having learned something. Hmmm... Not so new... Here are some screencaps...
Souce code editing

Design View and Running with the app running(at the center)

Design view with pallete window. I was also dragging a JButton(mouse not visible)

And the properties window