File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Resuming an old project, gui problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Resuming an old project, gui problems" Watch "Resuming an old project, gui problems" New topic

Resuming an old project, gui problems

Sancho Xavier

Joined: Jan 11, 2010
Posts: 8
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?

Thanks for looking at this!
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46375
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?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Sounds like a properties file that contains this information is missing, or in the wrong place.
I agree. Here's the link:
subject: Resuming an old project, gui problems
It's not a secret anymore!