Forums Register Login
Applet size method required
I have a canvas in bottom of applet with drawRect() around outside of canvas. I want to keep this relative to applet. getSize().width/height does not seem to update when I change the applet size. I have this in start() which I thought would update whenever applet was resized.

nope, Sorry.
The Sun tutorials on Applets suggest that we should not
use the getSize() or setSize() methods for the exact
same reason you said.
- satya

Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards

This thread has been viewed 486 times.

All times above are in ranch (not your local) time.
The current ranch time is
Feb 25, 2018 20:14:31.