Lillians patch to Container.addImpl turned out to be ok, and it probably
saves us lots of unnecessary repaint() calls. However, it broke all
kinds of popup menus. I fixed this by adding a repaint() call to
Popup.LightweightPopup.show().

2006-03-15  Roman Kennke  <[EMAIL PROTECTED]>

        * javax/swing/Popup.java
        (LightweightPopup.show): Repaint the panel after showing it.

/Roman
Index: javax/swing/Popup.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/Popup.java,v
retrieving revision 1.9
diff -u -r1.9 Popup.java
--- javax/swing/Popup.java	27 Jan 2006 10:35:11 -0000	1.9
+++ javax/swing/Popup.java	15 Mar 2006 15:26:31 -0000
@@ -285,6 +285,7 @@
       Point layeredPaneLoc = layeredPane.getLocationOnScreen();
       panel.setLocation(x - layeredPaneLoc.x, y - layeredPaneLoc.y);
       layeredPane.add(panel, JLayeredPane.POPUP_LAYER);
+      panel.repaint();
     }
 
     /**

Reply via email to