• Post Reply Bookmark Topic Watch Topic
  • New Topic

JLabel with HTML string is not working properly.

 
Peeyush Bhadola
Greenhorn
Posts: 10
Chrome Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!