Hi there,

I removed some layout() and repaint() calls in JSplitPane and
BasicSplitPaneUI. These caused a NPE when starting the SwingDemo and
seem to be useless anyway.

There are still problems though with the SplitPane. I'll look at these
soon.

2006-01-25  Roman Kennke  <[EMAIL PROTECTED]>

        * javax/swing/JSplitPane.java
        (addImpl): Removed invalidate() and layout() call.
        * javax/swing/plaf/basic/BasicSplitPaneUI.java
        (PropertyHandler.propertyChange): Remove layoutContainer() and
        repaint() call.


/Roman
Index: javax/swing/JSplitPane.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JSplitPane.java,v
retrieving revision 1.10
diff -u -r1.10 JSplitPane.java
--- javax/swing/JSplitPane.java	16 Nov 2005 22:21:18 -0000	1.10
+++ javax/swing/JSplitPane.java	25 Jan 2006 11:15:36 -0000
@@ -345,8 +345,6 @@
 
         super.addImpl(comp, constraints, index);
       }
-    invalidate();
-    layout();
   }
 
   /**
Index: javax/swing/plaf/basic/BasicSplitPaneUI.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicSplitPaneUI.java,v
retrieving revision 1.24
diff -u -r1.24 BasicSplitPaneUI.java
--- javax/swing/plaf/basic/BasicSplitPaneUI.java	21 Jan 2006 22:49:47 -0000	1.24
+++ javax/swing/plaf/basic/BasicSplitPaneUI.java	25 Jan 2006 11:15:36 -0000
@@ -823,8 +823,6 @@
           if (prop <= 1 && prop >= 0)
             splitPane.setDividerLocation(prop);
         }
-      layoutManager.layoutContainer(splitPane);
-      splitPane.repaint();
       // Don't have to deal with continuous_layout - only
       // necessary in dragging modes (and it's checked
       // every time you drag there)

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

_______________________________________________
Classpath-patches mailing list
[email protected]
http://developer.classpath.org/mailman/listinfo/classpath-patches

Reply via email to