Index: javax/swing/JComponent.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JComponent.java,v retrieving revision 1.60 diff -u -r1.60 JComponent.java --- javax/swing/JComponent.java 24 Sep 2005 20:40:21 -0000 1.60 +++ javax/swing/JComponent.java 24 Sep 2005 21:58:45 -0000 @@ -1469,6 +1469,8 @@ paintDoubleBuffered(g); else { + if (g.getClip() == null) + g.setClip(0, 0, getWidth(), getHeight()); paintComponent(g); paintBorder(g); paintChildren(g); Index: gnu/java/awt/peer/gtk/GdkGraphics2D.java =================================================================== RCS file: /cvsroot/classpath/classpath/gnu/java/awt/peer/gtk/GdkGraphics2D.java,v retrieving revision 1.49 diff -u -r1.49 GdkGraphics2D.java --- gnu/java/awt/peer/gtk/GdkGraphics2D.java 23 Sep 2005 21:36:42 -0000 1.49 +++ gnu/java/awt/peer/gtk/GdkGraphics2D.java 24 Sep 2005 21:58:47 -0000 @@ -966,7 +966,10 @@ public Shape getClip() { - return clip.getBounds2D(); //getClipInDevSpace(); + if (clip == null) + return null; + else + return clip.getBounds2D(); //getClipInDevSpace(); } public Rectangle getClipBounds()