[gui] [PATCH] ScrollPane fixes

David Jee djee@redhat.com
Tue Jul 6 15:00:00 GMT 2004


Hello,

I committed the following patch to the java-gui-branch.  It fixes
ScrollPane so that when you add a non-Panel component to a ScrollPane,
it will automatically get wrapped with a new Panel.  Also, the patch
sets the default size of a ScrollPane to 100x100, as the API dictates.

There are other small fixes: ScrollPane.paramString() is implemented to
give more helpful information, and an unnecessary call to validate() is
removed from GtkContainerPeer.setBounds().

-David Jee

2004-07-06  David Jee  <djee@redhat.com>

        * gnu/java/awt/peer/gtk/GtkContainerPeer.java
        (setBounds): Do not validate awtComponent here.
        * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
        (getPreferredSize): New method.
        * java/awt/ScrollPane.java
        (ScrollPane): Set default size to 100x100.
        (addNotify): If child is not a Panel, wrap it with a new Panel.
        (paramString): Implement.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ItemList2.patch
Type: text/x-patch
Size: 3281 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040706/6b84f40e/attachment.bin>


More information about the Java-patches mailing list