Article View: borland.public.jbuilder.java.api
Article #759Re: how can I resize a JPanel?very thanks
From: John McGrath TeamB
Date: Fri, 03 Jan 2003 11:03
Date: Fri, 03 Jan 2003 11:03
25 lines
1873 bytes
1873 bytes
On Fri, 3 Jan 2003 14:53:45 +0800, li hong wrote:
> Subject: how can I resize a JPanel?very thanks
The simple answer is to call setSize() on the panel, but that is
probably not what you want. Almost all resizing should normally be
done by a layout manager. However, it is hard to say given the
information you have provided. Could you describe what you are
trying to do in a little more detail?
P.S. It is a good idea to put your question in the body of the message
rather than just in the subject line. When a completely blank message
appears, it looks like the news reader is having trouble communicating.
And you really cannot be sure that the person reading the message will
be able to see the subject line. (See newsgroup guideline # 8 at
http://info.borland.com/newsgroups/guide.html).
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.187f38179ab87f0998bc52@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3e1531de@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,e86fb15286bf5910 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2003-01-03 03:09:28 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.api Subject: Re: how can I resize a JPanel?very thanks Date: Fri, 3 Jan 2003 06:03:39 -0500 Message-ID: <MPG.187f38179ab87f0998bc52@newsgroups.borland.com> References: <3e1531de@newsgroups.borland.com> X-Newsreader: MicroPlanet Gravity v2.60 NNTP-Posting-Host: 151.197.228.10 X-Trace: newsgroups.borland.com 1041591819 151.197.228.10 (3 Jan 2003 03:03:39 -0800) Lines: 25 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail