classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] JList fix


From: Roman Kennke
Subject: [cp-patches] JList fix
Date: Sat, 26 Feb 2005 11:32:48 +0100

Hi there,

attached you find a small fix for JList. This basically makes the cells
of a JList aware of the size of the JList so that the cells span the
whole width. IMO this fix is not perfect (== slighly inefficient) since
it needs to always recompute the cell widths with each repaint, but
since size and bounds are not bound properties and the size methods are
not overridden in JList I saw no other clean way to report size changes
into the ListUI. Maybe the overridden method reshape in JComponent
(which is not overridden in GNU CP) provides a hook into this, but I
cannot see how this can be used by JList and its ListUIs. Maybe someone
has a hint on this.

The other missing feature here is multiple columns in JLists, which I
will look into next.

/Roman

Attachment: JListFix.diff
Description: Text Data

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


reply via email to

[Prev in Thread] Current Thread [Next in Thread]