jQuery in Action, 2nd edition*
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Resuming an old project, gui problems" Watch "Resuming an old project, gui problems" New topic
Author

Resuming an old project, gui problems

Sancho Xavier
Greenhorn

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
Sheriff

Joined: Oct 13, 2005
Posts: 38519
    
  23
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
Marshal

Joined: Mar 22, 2005
Posts: 41635
    
  55
Sounds like a properties file that contains this information is missing, or in the wrong place.


Ping & DNS - my free Android networking tools app
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Resuming an old project, gui problems