Article View: borland.public.jbuilder.java.swing
Article #1175Re: Someone have example jList ListCellRenderer example?
From: John McGrath [TeamB]
Date: Mon, 22 Mar 2004 08:33
Date: Mon, 22 Mar 2004 08:33
31 lines
2372 bytes
2372 bytes
On 3/20/2004 at 8:04:02 PM, nospam wrote:
> Thank you for your response. I tried what you suggested,
> and it still does not work.
Now it should show the checkbox with a check mark in the current cell
when it is not selected. That certainly is pretty weird, but your
original code was written that way. In order to get it into a state
where it will show the check-mark, you will have to control-click on
the current cell.
It seems as if you are somehow expecting the selection state of the
JList to be used as the selection state for the virtual checkboxes you
are creating in the list. That will not work, or at least not very
well. You obviously need a model in which to store the selection state
for the checkboxes.
Have you looked at the code that I provided? I think it does exactly
what you have asked for, yet you seem to be trying to write something
completely different. If you think it is not what you need, please
tell us why. If you understood what my code does, you should
understand the issues here.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<405ea4f5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.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:
<pan.2004.03.17.02.25.29.868166@spam.com> <405a7347@newsgroups.borland.com> <pan.2004.03.20.04.55.47.68889@spam.com> <405bed9f@newsgroups.borland.com> <pan.2004.03.20.13.28.44.699216@spam.com> <405cbdd0@newsgroups.borland.com> <pan.2004.03.21.01.04.02.13739@spam.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,de66bf01ed98544f X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2004-03-22 00:39:32 PST From: "John McGrath [TeamB]" <ng-b@JPMcGrath.net> Subject: Re: Someone have example jList ListCellRenderer example? Newsgroups: borland.public.jbuilder.java.swing References: <pan.2004.03.17.02.25.29.868166@spam.com> <405a7347@newsgroups.borland.com> <pan.2004.03.20.04.55.47.68889@spam.com> <405bed9f@newsgroups.borland.com> <pan.2004.03.20.13.28.44.699216@spam.com> <405cbdd0@newsgroups.borland.com> <pan.2004.03.21.01.04.02.13739@spam.com> User-Agent: XanaNews/1.16.1.11 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 NNTP-Posting-Host: 151.197.242.55 Message-ID: <405ea4f5$1@newsgroups.borland.com> Date: 22 Mar 2004 00:33:57 -0800 X-Trace: newsgroups.borland.com 1079944437 151.197.242.55 (22 Mar 2004 00:33:57 -0800) Lines: 31 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.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