Results 1 to 1 of 1
- 03-15-2011, 03:48 AM #1
Member
- Join Date
- Dec 2010
- Posts
- 45
- Rep Power
- 0
ResourceBundle not working for applet, only for standard application
I am trying to run an example program from a book called Core Java Volume II, and it seems to have a problem loading its resources. There are 3 files that load color values from classes in English, German, and Chinese, as well as 3 properties files with label name translations. The code to load the ResourceBundles is quite simple, and it works fine if the example program is converted to be a standard app with a main code block, but when run as an applet, it cannot load the resource files at all and results in a bunch of empty labels and an empty button. I tried to run the applet in Firefox and Internet Explorer and neither browser could run the applet properly...the Resource files just aren't being loaded. However, if I run the applet using the appletviewer program, the applet works just fine. I double checked Firefox and it is up to date with the Java Deployment Toolkit and Java Platform SE U24. What am I doing wrong? Any help is greatly appreciated, thank you! :)
-Derek
Similar Threads
-
Applet Not Working Please Help....
By ajjukumar in forum New To JavaReplies: 2Last Post: 01-07-2011, 02:16 PM -
keylistener + applet isn't working
By brandon95 in forum Java AppletsReplies: 6Last Post: 01-03-2011, 02:10 PM -
Applet not working in browser
By gkr1989 in forum Java AppletsReplies: 3Last Post: 07-03-2009, 09:43 AM -
working directory in web application
By Juuno in forum Advanced JavaReplies: 1Last Post: 05-04-2009, 07:45 PM -
Applet not working
By jyothi.priyanka in forum New To JavaReplies: 5Last Post: 04-16-2009, 08:18 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks