Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

java setLabel

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I use the setLabel() method to set a label for a checkbox. In different states, I use it to set text to the checkbox i.e. State 1: checkbox1.setLabel("Hello"); State 2: checkbox1.setLabel("Java"); I've no problem running the applet with appletviewer and Internet Explorer 5. With Netscape, the second and subsequent labels get printed ovre the previous ones. How do I avoid this problem? Please advise :)
 
I think that there is always a problem with Java and Netscape. It happened to my friend.

One area to look at is what version of Java and what version of Netscape is being used.

Let me know!



[sig][/sig]
 
Thanks for responding. I'm using jdk1.2.2 and Netscape versions 4.0 (a browser-only version, supposedly the latest). - nick
 
Look at the faq on correctely displaying Applets, should solve this problem :) [sig]<p>ackka<br><a href=mailto:tmoses@iname.com>tmoses@iname.com</a><br><a href= my site</a><br>"Do No Harm, Leave No Tracks"<br>
ICMP Summer 2000, 2600 Article<br>
<br>
[/sig]
 
Thanks :) I'm not quite sure which faq to look for. I did a search with google but found nothing useful - went to some sites but the search was futile. Where can I find the faq? - nick
 
oh, my bad, at the very beginning of the java(sun) forum their are links at the top for the FAQ section just click on it and it will take you to the FAQ for java(sun) forum. This links should take you their also.....
later B-) [sig]<p>ackka<br><a href=mailto:tmoses@iname.com>tmoses@iname.com</a><br><a href= my site</a><br>"Do No Harm, Leave No Tracks"<br>
ICMP Summer 2000, 2600 Article<br>
<br>
[/sig]
 
hi ackka,

thanks :) i did as you advised but the applet still doesn't work properly under netscape. after the conversion, the label.java file that i've been working on has some code added to it. i re-compiled the label.java file, then downloaded label.class together with label.html. i opened the label.html file with netscape 4 and the result was the same as before. - nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top