/[classpath]/classpath/javax/swing/SwingUtilities.java
ViewVC logotype

Diff of /classpath/javax/swing/SwingUtilities.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by gnu_andrew, Thu Jan 27 01:39:31 2005 UTC revision 1.22 by mkoch, Fri Jan 28 12:25:09 2005 UTC
# Line 295  public class SwingUtilities Line 295  public class SwingUtilities
295    }    }
296    
297    /**    /**
    * 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);  
   }  
   
   /**  
298     * If <code>comp</code> is a RootPaneContainer, return its JRootPane.     * If <code>comp</code> is a RootPaneContainer, return its JRootPane.
299     * Otherwise call <code>getAncestorOfClass(JRootPane.class, a)</code>.     * Otherwise call <code>getAncestorOfClass(JRootPane.class, a)</code>.
300     *     *

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26