[cp-patches] FYI: BasicListUI fix

2006-01-30 Thread Roman Kennke
This fixes an issue with new elements beeing added to a JList. The list layout hasn't been updated in such a case, thus making the new element invisible until the updateLayoutState() is triggered by another change to the list. 2006-01-30 Roman Kennke <[EMAIL PROTECTED]> * javax/swing/pl

[cp-patches] FYI: BasicListUI fix

2006-01-28 Thread Roman Kennke
This patch corrects the calculation of the cell width for VERTICAL layoutOrientation in JLists and greatly improves performance of JList painting by saving most updateLayoutState() calls from within paint(). 2006-01-28 Roman Kennke <[EMAIL PROTECTED]> * javax/swing/plaf/basic/BasicListU

Re: [cp-patches] FYI: BasicListUI fix

2006-01-05 Thread Mark Wielaard
Hi, On Wed, 2006-01-04 at 21:40 +, Roman Kennke wrote: > 2006-01-04 Roman Kennke <[EMAIL PROTECTED]> > > * javax/swing/plaf/basic/BasicListUI.java > (locationToIndex): Added FIXME about getVisibleRowCount() usage. > Adjusted iteration to not use visibleRowCount and i

[cp-patches] FYI: BasicListUI fix

2006-01-04 Thread Roman Kennke
This fixes some exception in the BasicListUI. Thanks to Christopher for discussing this on IRC. 2006-01-04 Roman Kennke <[EMAIL PROTECTED]> * javax/swing/plaf/basic/BasicListUI.java (locationToIndex): Added FIXME about getVisibleRowCount() usage. Adjusted iteration to no

Re: [cp-patches] FYI: BasicListUI fix

2006-01-03 Thread Chris Lansdown
Roman, The loops loop like they will throw an OOB exception if the mouse click is below the last item, if there are too few items. Am I missing something? Thanks, Chris Lansdown On 01/03, Roman Kennke wrote: > This patch fixes JList rendering and size calculations for wrapping > JLists. > > 200

[cp-patches] FYI: BasicListUI fix

2006-01-03 Thread Roman Kennke
This patch fixes JList rendering and size calculations for wrapping JLists. 2006-01-03 Roman Kennke <[EMAIL PROTECTED]> * javax/swing/plaf/basic/BasicListUI.java (locationToIndex): Special case for when variable cell heights are possible. (cellHeights is used instead of

[cp-patches] FYI: BasicListUI fix

2005-11-15 Thread Roman Kennke
My last 'fix' for BasicListUI introduced some new misbehaviour in JList rendering. This should be fixed by this patch. 2005-11-15 Roman Kennke <[EMAIL PROTECTED]> * javax/swing/plaf/basic/BasicListUI.java Fixed API docs all over to better explain the changed (but correct)