Link to home
Start Free TrialLog in
Avatar of wildboy
wildboy

asked on

resizing applet when browser window size changes

I'm looking for strategies to dynamically changing the size of the
 frame that an applet displays in when the user changes the dimensions
 of their browser window... This would also be good to set the initial
 size of the applet when it's initially loaded.
 
 So, can anyone give me advice on:
 
 1) determining the browser's dimensions,
 2) detecting when theose dimensions change, and
 3) the way to change the applets frame dimensions and repain
Avatar of moorep
moorep

you can't really determine the dimensions of a window in NN 3.x.
How about setting the height and width of the applet in a percentage width and height instead of pixels.
<APPLET WIDTH="85%" HEIGHT="35%" ......>
Avatar of wildboy

ASKER

As far as I know (and it  doesn't work in IE3.02), you can't use percentages in the width and height of an applet...
ASKER CERTIFIED SOLUTION
Avatar of Erich050197
Erich050197

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wildboy

ASKER

It's surprising to me that there may currently be no way to detect a container change size event... I want to look into the object model of Netscape and IE to see if that's really true... so I remain curious about whether and how this can be done... Thanks