[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] FYI: BasicListUI
From: |
Lillian Angel |
Subject: |
Re: [cp-patches] FYI: BasicListUI |
Date: |
Fri, 11 Nov 2005 16:09:03 -0500 |
On Thu, 2005-11-10 at 20:35 +0000, Roman Kennke wrote:
> Hi,
>
> I fixed some buggies in the BasicListUI. The fixed cell height and width
> should now correctly be recognized. In addition to that I optimized the
> painting so that only the cells within the clip bounds are painted. This
> greatly improved performance when scrolling. This is really smooth now.
> I'll implement a similar optimization for JTable, JTree and the text
> components soon.
>
> 2005-11-10 Roman Kennke <address@hidden>
>
> * javax/swing/plaf/basic/BasicListUI.java
> (valueChanged): Repaint list when selection changed.
> (updateLayoutState): Reworked to correctly respect fixed cell
> sizes.
> (installListeners): Create component listener before adding it.
> (paint): Optimized to only draw the cells in the clip.
Tony and I noticed your painting fix breaks painting of the JLists.
Attached is a simple test case. Try running it with and without the
addition to paint.
Lillian
MyList.java
Description: Text Data