2005-09-23  Lillian Angel  <[EMAIL PROTECTED]>

        * javax/swing/ToolTipManager.java
        (showTip): Set lightWeightPopupEnabled to default.
        Validated and repainted new containerPanel and
        repainted toolTipWindow and repainted currentTip. The
        toolTips paint well now.

Index: javax/swing/ToolTipManager.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/ToolTipManager.java,v
retrieving revision 1.20
diff -u -r1.20 ToolTipManager.java
--- javax/swing/ToolTipManager.java	22 Sep 2005 15:36:38 -0000	1.20
+++ javax/swing/ToolTipManager.java	23 Sep 2005 17:19:50 -0000
@@ -470,6 +470,8 @@
     
     if (parent instanceof JPopupMenu)
         setLightWeightPopupEnabled(((JPopupMenu) parent).isLightWeightPopupEnabled());
+    else
+      setLightWeightPopupEnabled(true);
            
     if (isLightWeightPopupEnabled())
       {
@@ -502,6 +504,8 @@
         pane.add(containerPanel);
         containerPanel.setBounds(p.x, p.y, dims.width, dims.height);
         currentTip.setBounds(0, 0, dims.width, dims.height);
+        containerPanel.validate();
+        containerPanel.repaint();
       }
     else if (currentComponent.isShowing())
       {        
@@ -517,8 +521,10 @@
         tooltipWindow.pack();
         tooltipWindow.setBounds(p.x, p.y, dims.width, dims.height);
         tooltipWindow.show();
+        tooltipWindow.repaint();
       }
     currentTip.setVisible(true);
+    currentTip.repaint();
   }
 
   /**
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to