The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


resizes in java

Posted by shaun on January 09, 2001 at 5:27 AM

> Hi,

> My problem is that
> I have created a Java applet which will be in a table in html page.
> The applet gets called with
> Width and Height at 100% and the table height is 90% and width is 90%.
> When I run it through MSIE 5.0
> and I resize the page, the applet in the table resizes beautifully.
> This doesn't happen with Netscape 4.7. Netscape even uses
> a weird process when resizing the parent frame. I have written a method in applet which takes height and width and calls resize method. and this is called from javascript.
> . My questions are 2:
> 1) How can I catch the resize event?
> 2) At what point to resize the applet (I've noticed that
> it doesn't keep the new size when resizing in start(), however
> it does it when resizing in paint(Graphics g).

> Or if I am asking the wrong questions, just help
> me to resize it in Netscape.

> Any help appreciated. Please include a personal copy
> at

don�t know if this answers your question or not... I�m looking for answers to similar issues myself...


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us