List cell renderer with JLabel: selected border
- From: Karsten Wutzke <kwutzke@xxxxxx>
- Date: Tue, 09 Oct 2007 03:19:28 -0700
Hello!
When using a custom cell renderer (JLabel subclass), I noticed the
border of a selected item is not drawn. How can I achieve a border
like with the default renderer, the "yellow dots" around the entries,
as with a standard JList or JTree for example.
How do I do it? Change the JLabel super class to ...?
Karsten
PS: I need icons to be displayed on the left hand side.
.
- Follow-Ups:
- Re: List cell renderer with JLabel: selected border
- From: Bent C Dalager
- Re: List cell renderer with JLabel: selected border
- From: Håkan Lane
- Re: List cell renderer with JLabel: selected border
- Prev by Date: Re: Unpredictable Swing behaviour
- Next by Date: Usability: Which (menu) button?
- Previous by thread: Table cell with a combobox that has a calendar inbeded to the combobox
- Next by thread: Re: List cell renderer with JLabel: selected border
- Index(es):