Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet size method required

 
EJ JimCece
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
regds.
- satya

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic