classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: Some JViewport fixes


From: Roman Kennke
Subject: [cp-patches] FYI: Some JViewport fixes
Date: Wed, 12 Oct 2005 12:32:55 +0000

I investigated the JViewport stuff a little more and fixed the following
issues, which should bring JViewport a little closer to the reference
impl's behaviour:

2005-10-12  Roman Kennke  <address@hidden>

        * javax/swing/JViewport.java
        (ViewListener.componentResized): Only call revalidate instead of
        going through weird reverting code.
        (JViewport): First call updateUI, then set layout.
        (setViewPosition): Don't do anything if there is no real
        change.
        (setView): Don't remove the old component. This is handled by
        addImpl. Call revalidate().
        * javax/swing/ViewportLayout.java
        (layoutContainer): Preferably set view size to it's preferredSize
        instead of its minimumSize.

/Roman

Attachment: Viewport.diff
Description: Text Data


reply via email to

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