[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] scrollable JList
From: |
Roman Kennke |
Subject: |
[cp-patches] scrollable JList |
Date: |
Mon, 28 Feb 2005 11:27:30 +0100 |
Hi,
please review the attached patch that improves the behaviour of JList
within a scrolling container, especially with layoutOrientation set to
JList.HORIZONTAL_WRAP or VERTICAL_WRAP. Is the ChangeLog entry ok?
2005-02-27 Roman Kennke <address@hidden>
* javax/swing/JList.java
(getPreferredScrollableViewportSize):
previous implementation was merely guessing the size,
now it respects layoutOrientation, visibleRowCount
and preferredSize
(getScrollableTracksViewportHeight):
reimplemented to respect layoutOrientation, visibleRowCount
and preferred size
(getScrollableTracksViewportWidth):
reimplemented to respect layoutOrientation, visibleRowCount
and preferred size
* javax/swing/plaf/basic/BasicListUI.java
(getPreferredSize):
improved calculation of preferredSize when JList is
set to HORIZONTAL_WRAP or VERTICAL_WRAP.
(getCellBounds):
previous implementation assumed a layoutOrientation of
JList.VERTICAL, now also ok with JList.HORIZONTAL_WRAP and
JList.VERTICAL_WRAP
/Roman
JList_Scrollable.diff
Description: Text Data
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
- [cp-patches] scrollable JList,
Roman Kennke <=