This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
Similar Threads
I did see this question in the other dis.. group.I think all the answers are false.
I don't know this syntax
JApplet problem
Embedding JApplet vs Applet
Simple method program