[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: More BasicListUI fixes
From: |
Roman Kennke |
Subject: |
[cp-patches] FYI: More BasicListUI fixes |
Date: |
Thu, 05 Jan 2006 15:49:28 +0000 |
Hi,
I cleaned up the BasicListUI and fixed getPreferredSize once more so that
the JFileChooser works a little better.
2006-01-05 Roman Kennke <address@hidden>
* javax/swing/plaf/basic/BasicListUI.java
(ComponentHandler): Removed unneeded class.
(ListDataHandler.contentsChanged): Revalidate instead of calling
damageLayout().
(ListDataHandler.intervalAdded): Revalidate instead of calling
damageLayout().
(ListDataHandler.intervalRemoved): Revalidate instead of calling
damageLayout().
(PropertyChangeHandler.propertyChange): Or flags together instead
of adding them. Don't call damageLayout().
(componentListener): Removed unnecessary field.
(damageLayout): Removed unnecessary method.
(installListeners): Don't install unnecessary listeners.
(uninstallListeners): Dito.
(getPreferredSize): Don't ask for the real list height and
calculate with the previously calculated list height.
(locationToIndex): Renamed list parameter to l so that it doesn't
shadow the field with the same name.
(indexToLocation): Renamed list parameter to l so that it doesn't
shadow the field with the same name.
/Roman
patch.diff
Description: Text Data
- [cp-patches] FYI: More BasicListUI fixes,
Roman Kennke <=