On 28 Aug 2003 13:15:44 -0700,
je******@hotmail.com (Jeff T.) two-finger
typed:
I have an applet that sizes itself to the size of the browser frame
that it is running in. On IE the applet resizes upon dragging the
frame divider.
I'm having a problem with getting this applet to resize itself when I
resize the html frame if it's in Netscape 7.x. Seems like the problem
is the lack of a refresh signal to the java applet from the page. Is
this a known bug, is there a workaround? Thanks.
-Jeff
The proper way to resize an Applet is by giving the WIDTH and HEIGHT
parameters of the APPLET tag percentages instead of pixels. When you change
the size of the browser window, the Applet container will resize and
automatically revalidate the components inside according to the
LayoutManager (and repaint() accordingly).
Otherwise, the APPLET should always be the size that the WIDTH and HEIGHT
give. Sizing objects in a browsers' page works top-down, not bottom up.
Cheers.