Localization and Internationalization problem

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Localization and Internationalization problem

Postby Jimm » Tue Feb 28, 2006 10:10 am

I was trying to follow the demo of localization in Swing Designer at http://www.instantiations.com/windowbui ... s/nls.html. I'm getting the error message saying
"Strings within files in the default package cannot be externalized" in a popup dialog. by the way, I'm creating a JFrame in Swing, tried with window application, same problem.

Am I missing something here :roll: ? Any suggestions will be really appreciated!

Thanks,

J
Jimm
 
Posts: 2
Joined: Tue Feb 28, 2006 9:59 am

Re: Localization and Internationalization problem

Postby Eric Clayberg » Tue Feb 28, 2006 12:49 pm

Jimm wrote:I was trying to follow the demo of localization in Swing Designer at http://www.instantiations.com/windowbui ... s/nls.html. I'm getting the error message saying
"Strings within files in the default package cannot be externalized" in a popup dialog. by the way, I'm creating a JFrame in Swing, tried with window application, same problem.
Am I missing something here :roll: ? Any suggestions will be really appreciated!

Move your JFrame to a real package, and you should be fine. As suggested in the error message, strings within files in the default package can't be externalized.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Swing Designer

Who is online

Users browsing this forum: No registered users and 1 guest