๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8767

Re: Question regarding applets

#8767
From: TP
Date: Fri, 02 Mar 2001 21:52
16 lines
1326 bytes
Try this.setSize(x,y);
or:  this.resize(x,y);

Simon Ulfsbecker wrote:

> Hi all,
>
> I๏ฟฝm wondering wether it๏ฟฝs possible to get the size of the applet, from
> within the program. If for example, the user of the applet, specifies in his
> html-file that he wants the applet to be 400 pixels broad and 250 pixels
> heigh, how can I ask for those numbers in my code? I need to set the size of
> a canvas so that it expands relative to the applets size.
>
> Thanks in advance,
>
> Simon Ulfsbecker, Sweden
Technical Details
Message-ID: <3AA01603.573509F6@udscorp.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <Ogan6.5182$hi2.15010@nntpserver.swip.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,2db3c7e928a188bf
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-02 12:00:09 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
From: TP <Poupko@udscorp.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: Question regarding applets
Date: Fri, 02 Mar 2001 13:52:03 -0800
Organization: Ultramar Diamond Shamrock
Message-ID: <3AA01603.573509F6@udscorp.com>
Reply-To: Poupko@udscorp.com
X-Mailer: Mozilla 4.5 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
References: <Ogan6.5182$hi2.15010@nntpserver.swip.net>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Complaints-To: newsabuse@supernews.com
Lines: 17