File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes JLabel with HTML string is not working properly. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "JLabel with HTML string is not working properly. " Watch "JLabel with HTML string is not working properly. " New topic
Author

JLabel with HTML string is not working properly.

Peeyush Bhadola
Greenhorn

Joined: Jan 23, 2011
Posts: 10

Hi Guys,
I have a small issue ... I am trying to create an applet(say Sample.java) with a JLabel component in it initialized with HTML string.

Sample.java:

Other thing I did is I have embeded this applet in an HTMML file(Sample.html).

Sample.html:


After compiling Sample.java, when I open Sample.html in Internet Explorer - for first time it shows the applet with label correctly, but when i refresh the browser again, applet appears but the label does not.
Same issue is working fine on firefox 3.6.13.

I want to know if I am making some mistake or is this issue related to jvm version. Please help.
Here are the versions for:
Internet Explorer - 8.0.6001.18702 and JVM - 1.6.0_23

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JLabel with HTML string is not working properly.