Article View: borland.public.jbuilder.java.swing
Article #1071Re: how to do a JList filled with JCheckboxes?
From: Sam Seaborn
Date: Wed, 05 May 2004 18:20
Date: Wed, 05 May 2004 18:20
28 lines
1557 bytes
1557 bytes
FYI, I found an interesting solution here: http://www.devx.com/tips/Tip/5342 Thanks, Sam "Sam Seaborn" <sam@rightclick.ca> wrote in message news:40980aed$1@newsgroups.borland.com... > 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:
<40993082@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40980aed$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e278b4d50586b83 X-Google-Attributes: gid111d45,public Reply-To: "Sam Seaborn" <sam@rightclick.ca> From: "Sam Seaborn" <sam@rightclick.ca> Newsgroups: borland.public.jbuilder.java.swing References: <40980aed$1@newsgroups.borland.com> Subject: Re: how to do a JList filled with JCheckboxes? Date: Wed, 5 May 2004 14:20:29 -0400 Lines: 30 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: <40993082@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1083781250 207.35.237.35 (5 May 2004 11:20:50 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail