File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Applet width Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Applet width" Watch "Applet width" New topic

Applet width

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: May 06, 2000
Posts: 396
Hi jayapii,
yes u can get the applets' width using
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi Deekasha,
Thanx for reply but "this.getSize().w" and "getSize().w" will not compile but I read here :
Anyway, getSize().getWidth() is OKAY....
I agree. Here's the link:
subject: Applet width
It's not a secret anymore!