[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Re: jCVS version using Swing UI available


> > The other complaint I have heard about JTree is
> > that is is not very "pixel efficient", but I believe
> > this can be fixed with a customer renderer.
> 
> Yes, I think you mean that it always paints the background for
> every cell. The version I made does that too; for the renderer,
> it uses a JPanel with three JLabel's, one for the name and the
> icon in front of it, one for the version and one for the
> timestamp. But I don't see how that could be changed a lot.

In ICEMail, I had a problem with the rendering when I was trying
to mix a JLabel with my own drawing. That was bad. I think, however,
that if I went with my own JComponent I could get it to work right,
but then I am reproducing JLabel, which sucks.

How did you manage to get the columns of labels to line up properly?
In other words, how did you get the timestamps to line up vertically,
or did you just punt on that?

tim.
Tim Endres, ICE Engineering, Inc.
   mailto: time@ice.com    http://www.ice.com
   "Usenet - A slow moving self parody." -- Peter Honeyman