classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] Patch: Scroll pane containing a JList with a preferred size


From: Lillian Angel
Subject: [cp-patches] Patch: Scroll pane containing a JList with a preferred size.
Date: Thu, 16 Jun 2005 13:01:35 -0400

I fixed these 2 bugs. Attached is a patch file.

Bug #17360: JScrollPane has incorrect size when JList with specified
size is added to it.

Bug #17362: Scrollbars in JScrollPane appear only if the Container
containing JScrollPane is revalidated

* Here are 2 evident problems that appeared prior to me fixing these
bugs:
-1- The size of the JScrollPane changes if you manually resize the
window. Therfore, when the JScrollPane is revalidate it changes in size.
-2- if you set the preferredsize of the JList to something very large,
the scrollbars are still visible, but you cannot scroll anywhere because
the JList is about the same size as the JScrollPane. Funny, but the
JScrollPane is 3 pixels smaller because of the border, and thats the
reason the scrollbar appears.

2005-06-15  Lillian Angel  <address@hidden>

        * javax/swing/JViewport.java
        Fixed Bug #17360 and 17362.
        (setView): the size of the JScrollPane container
        is set to the preferredSize of the view that is added.


Lillian.

Attachment: 17360_17362.PATCH
Description: Text document


reply via email to

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