Article View: borland.public.jbuilder.java.swing
Article #8457Re: Table/Checkbox stuff
From: John P. McGrath
Date: Thu, 24 Aug 2000 00:00
Date: Thu, 24 Aug 2000 00:00
17 lines
977 bytes
977 bytes
On Mon, 21 Aug 2000 16:23:09 +0100, Marty wrote: > 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.... Add a TableModelListener to the table, recognize when one of your checkboxes is checked, and un-check all of the others off when that occurs. -- Regards, John McGrath
Technical Details
Message-ID:
<MPG.140ea07d57b61c11989af7@forums.borland.com>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: John P. McGrath <JPMcGrath@fast.net> Subject: Re: Table/Checkbox stuff Date: 2000/08/24 Message-ID: <MPG.140ea07d57b61c11989af7@forums.borland.com> X-Deja-AN: 661873697 References: <39a146cb$1_1@dnews> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing