The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2000

Advertisement

Advertisement

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.

Message:

Resizing applets with Netscape

Posted by Nikos Balkanas on April 25, 2000 at 2:49 PM

Hi,

I am fairly new to Java programming. My problem is that
I have created a Java Tree of an SQL (MySQL Database) table,
and run it inside a frame. The applet gets called with
Width and Height at 100% and the initial Frame size
is 365 px.

The frame is resizable. When I run it through MSIE 5.0
and I resize the frame, the applet resizes beautifully.
This doesn't happen with Netscape 4.7. Netscape even uses
a weird process when resizing the parent frame. It goes
through Applet.stop() and start(). I have used this
effect to resize the applet by reloading the frame. However
it is not elegant, because I loose the tree state.

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 nval@atkosost.com





Replies:

Sponsored Links



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