Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2626

Re: List cell renderer wi

From "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this>
Subject Re: List cell renderer wi
Message-ID <1192193001.632319.166990@i38g2000prf.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <470E5B8E.6CBD@operamail.com>
Date 2011-04-27 15:40 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
On 11 Okt., 19:21, H=E5kan Lane <H...@operamail.com> wrote:
> I think that you will have to write your own subclass of some
> CellRenderer class. In what context (JList, JTree et.c) are you using
> your JLabel? What you need to do would depend on that. I just spent
> several hours learning this stuff today, so I don't mind helping you.
> Just post some details about your code.
>
> H=E5kan

I'm using it in a JList. I already created a list cell renderer.
There's nothing special or otherwise difficult about the code in that
renderer class. When highlighting an entry in the list, I just miss
the "dotted border", as with standard JList or JTree entries.

What I mean here is I think, the border that gets displayed when the
entry is *focussed*...

Karsten

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

List cell renderer with J "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
  Re: List cell renderer wi "bcd" <bcd@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
  Re: List cell renderer wi "Håkan Lane" <håkan.lane@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
    Re: List cell renderer wi "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000

csiph-web