[gui][patch] fixes to viewport
graydon hoare
graydon@redhat.com
Wed Jun 16 03:38:00 GMT 2004
hi,
I committed this patch to the java-gui-branch. it fixes viewport layout
calculations so that they behave more like sun's swing (not like sun's
documentation, which plainly lies!)
it also includes some small fixes to missing methods and properties
elsewhere in swing.
-graydon
2004-06-15 Graydon Hoare <graydon@redhat.com>
* javax/swing/ImageIcon.java (ImageIcon): New constructor.
* javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
* javax/swing/JViewport.java
(getExtentSize): Return size rather than preferred size.
(toViewCoordinates): New methods.
(getViewSize): Return size rather than preferred size.
(setViewSize): Note view size as set.
* javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
* javax/swing/plaf/basic/BasicScrollBarUI.java
(getPreferredSize): Don't redo layout.
* javax/swing/plaf/basic/BasicViewportUI.java
(paint): Translate image properly and eat exceptions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: j2d-viewport-layout-and-various-fixes.patch
Type: text/x-patch
Size: 7238 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040616/937ee2d0/attachment.bin>
More information about the Java-patches
mailing list