Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic