This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
Similar Threads
Getting sql error [Microsoft ][odbc microsoft access driver]numeric index out of range
mouselistener for Scrollbar
Image is not been added to a label
When I reload the applet the labels with html syntax hides.
Trouble adding JLabels to JLayeredPane