🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ��DefaultTableModel��һ�ʣ���

#20313
From: ����
Date: Mon, 22 Dec 2003 08:25
27 lines
3210 bytes
����remove��500���Ժ�model��ʣ501��row

��removeRow(501)��Ȼ������

�� �� not (�޻���) �Ĵ������ᵽ: ��
: �������и�����ֵ����⣺
: ����DefaultTableModel model=new DefaultTableModel();
:           int rowCount=model.getRowCount();
:           System.out.println("current rows is"+rowCount);
:           for(int i=0; i<rowCount-1; i++){
:             model.removeRow(i);
:           }
: ����һ�����У�rowCount=0ʱ��û������
: ���ǵڶ���ʱ��Ҳ����rowCount=1001ʱ���ҵ������ô�ࣩ��
: >>  .................<����ʡ��>............


--
 ��ftp://foxtail.9966.org��                       �� 88 Comic                   �X�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�[
�U[21]  anonymous |full data DL/UL| 5 IPs |1 conn.|100k     �U                    �U  vip   :vip    |full data DL/UL|no lmt.|5 conn.|full spd.�U
�U  list  :list   |�� list only ��|no lmt.|no lmt.|-        �U                    �U[22]  anonymous |��  upload   ��|no lmt.|no lmt.|full spd.�U
�U  GC    :GC     |��GARNET CROW��|no lmt.|1 conn.|full spd.�U                    �U  X     :X      |�� X - JAPAN ��|no lmt.|1 conn.|full spd.�U
�U  sanguo:sanguo |���� �� ר ���|no lmt.|1 conn.|full spd.�U                    �^�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�a
  �� ��ͷ SamuraiX                    ��ftp://10.111.195.43�� 

�� ��Դ:��Ʈ��ˮ�Ƽ� Freecity.dhs.org��[FROM: FoxTail]
Technical Details
Message-ID: <49k16N$9eI@Freecity.dhs.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!ngpeer.news.aol.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,f99c72817cdf1268
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-12-22 03:05:48 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!ngpeer.news.aol.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity
From: FoxTail.bbs@Freecity.dhs.org (����)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: ��DefaultTableModel��һ�ʣ���
Date: 22 Dec 2003 08:25:28 GMT
Organization: Ʈ��ˮ�Ƽ�
Message-ID: <49k16N$9eI@Freecity.dhs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1072081463.A