This patch (committed) fixes dragging of internal frames under the
PlasticLookAndFeel from JGoodies:
2006-09-07 David Gilbert <[EMAIL PROTECTED]>
* javax/swing/plaf/basic/BasicInternalFrameUI.java
(setNorthPane): Assign component to titlePane.
Here are a couple of screenshots showing the PlasticXPLookAndFeel running on GNU
Classpath:
http://www.object-refinery.com/classpath/plastic-demo.png
http://www.object-refinery.com/classpath/plastic-junit.png
Regards,
Dave
Index: javax/swing/plaf/basic/BasicInternalFrameUI.java
===================================================================
RCS file:
/sources/classpath/classpath/javax/swing/plaf/basic/BasicInternalFrameUI.java,v
retrieving revision 1.41
diff -u -r1.41 BasicInternalFrameUI.java
--- javax/swing/plaf/basic/BasicInternalFrameUI.java 3 Aug 2006 20:26:05
-0000 1.41
+++ javax/swing/plaf/basic/BasicInternalFrameUI.java 7 Sep 2006 11:38:43
-0000
@@ -1594,6 +1594,13 @@
{
replacePane(northPane, c);
northPane = c;
+ // the following is needed to make internal frames draggable when using
+ // the JGoodies PlasticLookAndFeel, because it overrides the
+ // createNorthPane() method and doesn't assign anything to the titlePane
+ // field. It is possible there is another way to make this work, but
+ // I didn't find it...
+ if (c instanceof BasicInternalFrameTitlePane)
+ titlePane = (BasicInternalFrameTitlePane) c;
}
/**