Article View: borland.public.jbuilder.java.swing
Article #1067how to do a JList filled with JCheckboxes?
From: Sam Seaborn
Date: Tue, 04 May 2004 21:27
Date: Tue, 04 May 2004 21:27
14 lines
1290 bytes
1290 bytes
Hi, I'm trying to do a JList of JCheckboxes (like in JBX's 'close projects' dialog box). I have implemented a JTable with two columns, one for the checkbox and one for the label. But it's not exactly what I want, and not as nice as JBX's. Also, I tried dynamically GridBagLayout-ing JCheckBoxes on a JPanel to duplicate the behaviour, but that turned out even worse. How would you Swing gurus do it? Sam
Technical Details
Message-ID:
<40980aed$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e278b4d50586b83,start X-Google-Attributes: gid111d45,public Reply-To: "Sam Seaborn" <sam@rightclick.ca> From: "Sam Seaborn" <sam@rightclick.ca> Newsgroups: borland.public.jbuilder.java.swing Subject: how to do a JList filled with JCheckboxes? Date: Tue, 4 May 2004 17:27:54 -0400 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 207.35.237.35 Message-ID: <40980aed$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1083706093 207.35.237.35 (4 May 2004 14:28:13 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail