File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet width

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
Is it possible to get the applet width from init() using
a) this.getSize().w;
b) getSize().w;

Can somebody comment please!!
 
deekasha gunwant
Ranch Hand
Posts: 396
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi jayapii,
yes u can get the applets' width using
appletname.getSize().getWidth();
regards
deekasha
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
Hi Deekasha,
Thanx for reply but "this.getSize().w" and "getSize().w" will not compile but I read here : http://www.geocities.com/SiliconValley/Network/3693/points.html
Anyway, getSize().getWidth() is OKAY....
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic