classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] 2 Patches for getPreferredScrollableViewportSize


From: Anthony Balkissoon
Subject: [cp-patches] 2 Patches for getPreferredScrollableViewportSize
Date: Fri, 02 Sep 2005 12:09:57 -0400

The ViewportLayout patch I committed yesterday was causing some
NullPointerExceptions because some classes that implemented Scrollable
hadn't properly implemented the getPreferredScrollableViewportSize
method.  These two patches implement this method in JTree and JList.
There are no more null pointer exceptions relating to this although many
of the classes that extend JTextComponent are simply returning
getPreferredSize inside this method when perhaps they should be
returning something else.

The two patches are attached.

2005-09-02  Anthony Balkissoon  <address@hidden>

        * javax/swing/JList.java:
        (getPreferredScrollableViewportSize): Implemented.

2005-09-02  Anthony Balkissoon  <address@hidden>

        * javax/swing/JTree.java:
        (getPreferredScrollableViewportSize): Implemented.

-- Tony

Attachment: JListScrollableViewportSize.diff
Description: Text Data

Attachment: JTreeScrollableViewportSize.diff
Description: Text Data


reply via email to

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