The change in Component passed the mauve tests.

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

        * java/awt/Component.java
        (getFont): Should return null, not a default font.
        * javax/swing/ToolTipManager.java
        (showTip): Called revalidate currentTip before painted, and
        called validate on JDialog toolTip.

Index: java/awt/Component.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Component.java,v
retrieving revision 1.75
diff -u -r1.75 Component.java
--- java/awt/Component.java	19 Sep 2005 08:57:03 -0000	1.75
+++ java/awt/Component.java	23 Sep 2005 20:28:16 -0000
@@ -1074,8 +1074,7 @@
     Component p = parent;
     if (p != null)
       return p.getFont();
-    else
-      return new Font("Dialog", Font.PLAIN, 12);
+    return null;
   }
 
   /**
@@ -1886,7 +1885,7 @@
    * @see #repaint(long, int, int, int, int)
    */
   public void repaint()
-  {
+  {    
     if(!isShowing())
       {
         Component p = parent;
Index: javax/swing/ToolTipManager.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/ToolTipManager.java,v
retrieving revision 1.21
diff -u -r1.21 ToolTipManager.java
--- javax/swing/ToolTipManager.java	23 Sep 2005 17:23:27 -0000	1.21
+++ javax/swing/ToolTipManager.java	23 Sep 2005 20:28:16 -0000
@@ -44,7 +44,6 @@
 import java.awt.LayoutManager;
 import java.awt.Panel;
 import java.awt.Point;
-import java.awt.Rectangle;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 import java.awt.event.MouseAdapter;
@@ -521,9 +520,11 @@
         tooltipWindow.pack();
         tooltipWindow.setBounds(p.x, p.y, dims.width, dims.height);
         tooltipWindow.show();
+        tooltipWindow.validate();
         tooltipWindow.repaint();
       }
     currentTip.setVisible(true);
+    currentTip.revalidate();
     currentTip.repaint();
   }
 
_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to