Article View: borland.public.jbuilder.java.language
Article #16191to who likes challenge.
From: DE DEUS Joao
Date: Tue, 16 Mar 1999 00:00
Date: Tue, 16 Mar 1999 00:00
17 lines
861 bytes
861 bytes
Who knows to get the width of a Panel ?
I'm turning a round and don't find any answer.
I pack my frame but I don't what resize my frame and it returns packed.
here is my code:
int x=Panel.getSize().width;
int t=0;
int i=0;
while (t<x){
Button c=new Buttont();
c.setLabel(""+ i++);
t += c.getWidth();
Panel.add(c);
}
Technical Details
Message-ID:
<36EE8087.D9BA4EA0@ist.lu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,169589939a822892,start X-Google-Attributes: gidf74b3,public From: DE DEUS Joao <joao.dedeus@ist.lu> Subject: to who likes challenge. Date: 1999/03/16 Message-ID: <36EE8087.D9BA4EA0@ist.lu> X-Deja-AN: 455662498 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Reply-To: joao.dedeus@ist.lu Newsgroups: borland.public.jbuilder.java.language