Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile 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