Hi,
I finally found that bug that caused JScrollPane to not work correctly.
Now it should be possible to actually scroll things in a JScrollPane
(like in the ODB) :-)
2005-08-03 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/plaf/basic/BasicViewportUI.java
(paintSimple): Corrected the clip that is used to draw the
viewport's content. This fixes scrolling in JScrollPane and
JViewport.
/Roman
Index: javax/swing/plaf/basic/BasicViewportUI.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicViewportUI.java,v
retrieving revision 1.14
diff -u -r1.14 BasicViewportUI.java
--- javax/swing/plaf/basic/BasicViewportUI.java 2 Jul 2005 20:32:50 -0000 1.14
+++ javax/swing/plaf/basic/BasicViewportUI.java 3 Aug 2005 19:46:39 -0000
@@ -160,8 +160,8 @@
Rectangle viewBounds,
Rectangle portBounds)
{
- Rectangle oldClip = g.getClipBounds ();
- g.setClip (oldClip.intersection (viewBounds));
+ Rectangle oldClip = g.getClipBounds();
+ g.setClip(portBounds);
g.translate (-pos.x, -pos.y);
try
{
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches