[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath: SwingUtilities cleanup

Kaffe CVS cvs-commits at kaffe.org
Sat Jan 29 07:51:09 PST 2005


PatchSet 5943 
Date: 2005/01/29 15:42:09
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU Classpath: SwingUtilities cleanup

2005-01-29  Dalibor Topic  <robilad at kaffe.org>

        Resynced with GNU Classpath.

2005-01-28  Michael Koch  <konqueror at gmx.de>

* javax/swing/SwingUtilities.java
(getFontMetrics): Removed.

Members: 
	ChangeLog:1.3482->1.3483 
	libraries/javalib/javax/swing/SwingUtilities.java:1.9->1.10 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3482 kaffe/ChangeLog:1.3483
--- kaffe/ChangeLog:1.3482	Sat Jan 29 15:39:47 2005
+++ kaffe/ChangeLog	Sat Jan 29 15:42:09 2005
@@ -4,6 +4,15 @@
 	
 	2005-01-28  Michael Koch  <konqueror at gmx.de>
 
+	* javax/swing/SwingUtilities.java
+	(getFontMetrics): Removed.
+
+2005-01-29  Dalibor Topic  <robilad at kaffe.org>
+
+        Resynced with GNU Classpath.
+	
+	2005-01-28  Michael Koch  <konqueror at gmx.de>
+
 	* java/awt/Container.java
 	(paramString): Implemented.
 	* javax/swing/AbstractButton.java
Index: kaffe/libraries/javalib/javax/swing/SwingUtilities.java
diff -u kaffe/libraries/javalib/javax/swing/SwingUtilities.java:1.9 kaffe/libraries/javalib/javax/swing/SwingUtilities.java:1.10
--- kaffe/libraries/javalib/javax/swing/SwingUtilities.java:1.9	Thu Jan 27 14:10:27 2005
+++ kaffe/libraries/javalib/javax/swing/SwingUtilities.java	Sat Jan 29 15:42:14 2005
@@ -295,22 +295,6 @@
   }
 
   /**
-   * Returns the font metrics object for a given font. The metrics can be
-   * used to calculate crude bounding boxes and positioning information,
-   * for laying out components with textual elements.
-   *
-   * @param font The font to get metrics for
-   *
-   * @return The font's metrics
-   *
-   * @see java.awt.font.GlyphMetrics
-   */
-  public static FontMetrics getFontMetrics(Font font)
-  {
-    return Toolkit.getDefaultToolkit().getFontMetrics(font);
-  }
-
-  /**
    * If <code>comp</code> is a RootPaneContainer, return its JRootPane.
    * Otherwise call <code>getAncestorOfClass(JRootPane.class, a)</code>.
    *




More information about the kaffe mailing list