Article View: borland.public.jbuilder.java.swing
Article #8450Re: Table/Checkbox stuff
From: Andreas Schnell
Date: Tue, 22 Aug 2000 00:00
Date: Tue, 22 Aug 2000 00:00
21 lines
1219 bytes
1219 bytes
"Marty" <mlynch@telesoft-technologies.com> schrieb im Newsbeitrag news:39a146cb$1_1@dnews... > Hi > > Ive created a table and tablemodel. one column in the table is a > checkbox..... there are four rows in the table.... > > How can i ensure that only one checkbox can be checked at a time.. ie if > checkbox in row 2 is on, and someone selects the checkbox in row 3, then row > 2 is unchecked.... I think you have to implement a TableCellEditor for the checkbox column to get the event, when a checkbox was selected. When you stop editing the checkbox, you should check the data in the tablemodel if you have to clear another checkbox. hope this helps Andreas Schnell
Technical Details
Message-ID:
<39a23531$1_1@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39a146cb$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e3d8b9c506a762ba X-Google-Attributes: gid111d45,public From: "Andreas Schnell" <Andreas.Schnell@innovations.de> Subject: Re: Table/Checkbox stuff Date: 2000/08/22 Message-ID: <39a23531$1_1@dnews> X-Deja-AN: 661045130 References: <39a146cb$1_1@dnews> X-Trace: 22 Aug 2000 01:09:21 -0800, 194.123.233.30 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.jbuilder.java.swing X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600