This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
So I've been asked to revisit a project I haven't touched or thought about for 3 years. It was developed using NetBeans 6.9.1 and targeted for jre 1.5. I dug up the source and downloaded NetBeans 7, long story short, I am back in NetBeans 6.9.1 trying to at least get the project to compile and run properly.
In NetBeans I can select "Run Project" and it works flawlessly, GUI and all. When I compile, it succeeds, but upon opening the jar, the window, the fields, and all the buttons show and function, but there is no Application title on the top of the window (it says: Application.title not specified), the background color is grey, no menus, no labels, and no button text.
Like I said, the functionality is still there and so is the layout, but none of the GUI details.
Any ideas as to why the app would run flawlessly within NetBeans, but following compile would be lacking this data?
Code developed on an old version of NetBeans should run normally on newer versions and Java5 code should run on Java7 without any changes.
You can’t even have any of that dreadful auto‑generated code because GroupLayout wasn’t available in Java5.
How are you passing the title to the frame?