🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #20276

Re: [��,����]Controlling Layout

#20276
From: Java Enthusiast
Date: Sun, 21 Dec 2003 12:59
26 lines
1859 bytes
        JPanel pane = new JPanel(new GridLayout(0,2));
   
        pane.add(new JButton("Button 1"));
        pane.add(new JButton("Button 2"));
        pane.add(new JButton("Button 3"));
        pane.add(new JButton("Button 4"));
        pane.add(new JButton("Button 5"));
        pane.add(new JButton("Button 6"));

        getContentPane().setLayout(new FlowLayout());
        getContentPane().add(pane);

�� �� ggoo (campo) �Ĵ������ᵽ: ��
: _____________
: |__1__|__2__|
: |__3__|__4__|
: |__5__|__6__|
: ��Ҫ�����������е�2�а�ť,�����GridLayerout ��Button �Ĵ�С��������С��ı�
: �����FlowLayout,��6��Button����ʾ��ͬһ��.
: ���ʸ���ô�趨?


--
gjyalpha ��˭��������gjyalpha ��

�� ��Դ:��Ʈ��ˮ�Ƽ� Freecity.dhs.org��[FROM: gjyalpha]
Technical Details
Message-ID: <49jIbW$9GQ@Freecity.dhs.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fr.ip.ndsoftware.net!news.primus.ca!news.primus.ca!ctu-peer!news.nctu.edu.tw!netnews.csie.nctu.edu.tw!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,GB
X-Google-Thread: f6cb0,9fa9a522ca7a8dcb
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-12-22 03:08:03 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fr.ip.ndsoftware.net!news.primus.ca!news.primus.ca!ctu-peer!news.nctu.edu.tw!netnews.csie.nctu.edu.tw!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity
From: gjyalpha.bbs@Freecity.dhs.org (Java Enthusiast)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: [��,����]Controlling Layout
Date: 21 Dec 2003 12:59:38 GMT
Organization: Ʈ��ˮ�Ƽ�
Message-ID: <49jIbW$9GQ@Freecity.dhs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1072011536.A
Lines: 26