🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #7888

Trouble of deleting last item in JTable

#7888
From: Sun Gang
Date: Thu, 07 Dec 2000 23:26
12 lines
1380 bytes
Hi, everyone,

I designed a dialogue with a JTable, and two JButtons. JTable's cell
editor is a ComboBox. The functions of two buttons are to add, or remove
item in JTable, when I select the last item in JTable, and click Remove
button, the last item is removed successfully, but when I select
remained items in JTable, the trouble appears, I cannot select any items
in JTable, and exception is throwed, I guess I cannot handle cell editor
correctly, who can tell me how to aviod this trouble.

Anything to be appreciated,
Sun Gang.
Technical Details
Message-ID: <3A301CA2.CBBB8039@mail.tsinghua.edu.cn>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!howland.erols.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!166.111.208.34

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,a5729642e847cde5,start
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2000-12-06 23:23:07 PST
Message-ID: <3A301CA2.CBBB8039@mail.tsinghua.edu.cn>
Date: Thu, 07 Dec 2000 15:26:26 -0800
From: Sun Gang <sung@mail.tsinghua.edu.cn>
X-Mailer: Mozilla 4.74 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Trouble of deleting last item in JTable
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 166.111.208.34
X-Trace: 6 Dec 2000 23:22:31 -0800, 166.111.208.34
Lines: 13
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!howland.erols.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!166.111.208.34