Σάββατο, Ιανουαρίου 31, 2009

Be careful with Netbeans 6.5!

Being In the Linux world for years I have integrated into my mind the advice "accept only the security updates". Not that I always followed it but that's another story.
The last version of Netbeans is not an efficient solution for newbies in J2SE or J2ME. The former comes from my experience a few weeks ago and the latter comes from a colleague.
I have worked with J2ME a year ago but I never liked Java. Last year in J2ME I had some problems with the simulator's keyboard but the project was completed. My colleague said that Netbeans couldn't run the "Hello world" code that was created by itshelf. And I believe him
because he is not a newbie but an experienced Java programmer (although he is using Windows).

This year I tried to make an application in Java SE and I thought it would be better to use Netbeans instead of JBuilder. All the books I had contained code with classes that extended JFrame.
When you choose to create a desktop application with or without database, Netbeans 6.5 creates two java files, the first to extending SingleFrameApplication and the second to extend FrameView.
You won't find many examples on Internet not to mention that there was no example in the books. It took me a while to find out how to connect the created classes with dialogs and other frames
but this "while" was valuable. It would be better for me if I created simple Java classes and used what I knew or what was in the books.
There must be a way in Netbeans to change the template of the Java Desktop Application but I didn't look for it. I am not saying "don't use Netbeans" because Netbeans is a nice IDE. What I am saying is "be careful with its new code templates because they will create you many problems".