Migrating Projects Created in NetBeans IDE 5.5 to NetBeans IDE 6.1

First of all I would like to thank Geertjan Wielenga for his time in answering a lot of my questions at the Sun Tech Days 2008 in Manila. As a result, this is the first time I tried NetBeans IDE 6.1 and below are my experiences moving an application from 5.5 to 6.1.

I have a Swing/JDBC application, which is created using NetBeans IDE 5.5, and is not yet complete. I attended Sun Tech Days 2008 in Manila and I asked the NetBeans Booth for instructions on migration. Here is the screeshot of my project in NetBeans IDE 5.5:

netbeans

...and so I tried opening the same project using 6.1. Here it is:

 

I was wondering what those red exclamation marks on the left pane in the Projects window mean. I tried hovering my mouse waiting to see some tooltip or some error tips for it but it didn't provide information.

Another point is that this is how my JFrame looks in NetBeans IDE 5.5:

...and here is what it looks like in NetBeans IDE 6.1:

Notice the differences... especially the length of the visible textfield. What could the reason be?

0
AttachmentSize
55.png47.19 KB
61.png44.43 KB

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Geertjan Wielenga replied on Mon, 2008/06/23 - 3:49am

Hi Joshua! Those red error marks indicate that some of the classes in those packages are unable to compile for some reason. You should try to expand those packages and find those classes, which will also have those red error marks. Maybe you're missing a library in your migrated application? It's possible that you migrated your application, but somehow failed to include the libraries on which the application depends.

The second question can partly be explained by the fact that you're using different look and feels. Try running the 6.1 version with the Metal look and feel, which is what you seem to have used for the 5.5 screenshot. 

Varun Nischal replied on Mon, 2008/06/23 - 4:30am in response to: geertjan

@Geertjan,

Try running the 6.1 version with the Metal look and feel, which is what you seem to have used for the 5.5 screenshot. 

Well, I faced another problem, i.e. the components added on a panel on JFrame, gets hidden, when window resizing takes place. In my case, its not related to Look and Feel (as far as I know), its more related to the Matisse.

I had once blogged about resizing components, wherein the components position shifts due to resizing, I found the workaround.

However, I am looking for a solution for windows to resize to a limit, i.e. they should not hide components. Any suggestions?

jemate18 replied on Wed, 2008/06/25 - 6:51am in response to: geertjan

geertjan wrote:

Hi Joshua! Those red error marks indicate that some of the classes in those packages are unable to compile for some reason. You should try to expand those packages and find those classes, which will also have those red error marks. Maybe you're missing a library in your migrated application? It's possible that you migrated your application, but somehow failed to include the libraries on which the application depends.

The second question can partly be explained by the fact that you're using different look and feels. Try running the 6.1 version with the Metal look and feel, which is what you seem to have used for the 5.5 screenshot. 

 I have tried using the metal look and feel, but to no luck, the problems on the JFRAME sizes and its components was not solved.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.