🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

��̣�Ϊʲô���һ����ť��ʱ��ԭ����λ�û�ˢ�£

#22941
From: neophyte
Date: Thu, 28 Aug 2003 06:48
15 lines
2026 bytes
Ʃ��˵��JPanel��ԭ���м���JButton��λ���϶���
addһ���µ�JButton�Ļ���ԭ���ļ�������ص��Լ�addʱ�ij�ʼλ����ȥ�ˣ�
��ԭ����Ϊ��add�����⣬���ǰ���ЩJButton�ȶ�add�ã���setVisible��false����
Ȼ����Ҫʱ��Ҫ��ӽ�����setVisible��true����
�����������setVisible��true���˵Ļ�����ص���ʼλ��ȥ�ˣ�
ʵ���벻ͨ��ʲô���⣬��������ߴͽ̡�
BTW����ΪҪ�϶������õ���AbsoluteLayout��add��ʱ���õ��﷨�ǣ�
JPanel.add(JButton,new 
org.netbeans.lib.awtextra.AbsoluteConstraints(int,int,int,int)) 
AbsoluteConstraints����ĸ�����ֱ��ǣ���ʼλ�õ�x��y����JButton�Ŀ�͸ߣ�
��֪����û�й�ϵ��
--
Chrysler Dodge ViperGTS-R Team Oreca
http://bbs.sjtu.edu.cn/showfile?name=1061091667ViperGTS.jpg
�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 202.120.16.76]
Technical Details
Message-ID: <483GA9$9WK@bbs.sjtu.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!167.206.3.103.MISMATCH!news3.optonline.net!maily.cic.tsinghua.edu.cn!news.happynet.org!news.neu.edu.cn!SJTU

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,5ade708ed2427f9,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-08-27 23:48:36 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!167.206.3.103.MISMATCH!news3.optonline.net!maily.cic.tsinghua.edu.cn!news.happynet.org!news.neu.edu.cn!SJTU
From: ViperGTS.bbs@bbs.sjtu.edu.cn (neophyte)
Newsgroups: cn.bbs.comp.lang.java
Subject: ��̣�Ϊʲô���һ����ť��ʱ��ԭ����λ�û�ˢ�£
Date: 28 Aug 2003 06:48:30 GMT
Organization: ��ˮ˼Դ
Message-ID: <483GA9$9WK@bbs.sjtu.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1062052329.A
Lines: 15