File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes resize problem in Netscape Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "resize problem in Netscape" Watch "resize problem in Netscape" New topic

resize problem in Netscape

rose deng
Ranch Hand

Joined: Dec 29, 2000
Posts: 78
i embed an applet in a html page with following code:
< applet codebase="." code="x.class" width=50% height=50%>
< /applet>
when resize browser in IE,the applet will change dynamically.
But in Netscape 4.7,the applet size will not change.
How to solve this problem?
Thanks for your answer in advance.
Edited by Cindy to get the HTML to display instead of execute.
[This message has been edited by Cindy Glass (edited February 09, 2001).]
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Lets move this to applets and see if you get an answer over there.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Stephanie Grasson
Ranch Hand

Joined: Jun 14, 2000
Posts: 347
Hi Rose!
I tried using both Netscape 4.7 and IE 5 to open an html page with an embedded applet (width and height set to 50%) and resize them. They both worked as expected. Is it possible that something in your Java code is causing this? It might be easier to tell if you could post your code. I do not see anything wrong with the way you set up your html.
Daniel Olson
Ranch Hand

Joined: Jan 05, 2001
Posts: 81
There are a couple articles on the JavaWorld website that might have an answer to your problem.
Java Tip 8: Threads, Netscape, and the resize problem
How to deal with applet resizing in Netscape Navigator
Java Tip 9: More on threads, Netscape, and the resize problem
Continued discussion of how to deal with applet resizing in Netscape Navigator
I agree. Here's the link:
subject: resize problem in Netscape
It's not a secret anymore!