Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4953840
Votes 0
Synopsis Add override of getFontMetrics to JComponent
Category java:classes_swing
Reported Against tiger-beta
Release Fixed 1.5(tiger-b30)
State 10-Fix Delivered, request for enhancement
Priority: 3-Medium
Related Bugs
Submit Date 13-NOV-2003
Description
Numerous customers, including CAP members, have requested that Swing
have the ability to support antialiased text, related bugs include
4502804, 4808567, 4194023, 4479363 with a total of 33 JDC votes.  We
would like to do this work for 1.5.1, but it requires an API change.
As such, we would like to do the API change now and do the work in
1.5.1.  The API change is to override a method in JComponent inherited
from Component.  The spec will be the same as that defined in
Component and will NOT change between 1.5 and 1.5.1.  The spec and
method will look like:
                                                                                
    /**
     * Gets the <code>FontMetrics</code> for the specified <code>Font</code>.
     *
     * @param font the font for which font metrics is to be
     *          obtained
     * @return the font metrics for <code>font</code>
     * @throws NullPointerException if <code>font</code> is null
     * @since     1.5
     */
    public FontMetrics getFontMetrics(Font font);
Work Around
N/A
Evaluation
Yes, this override should be added.
 xxxxx@xxxxx  2003-11-19
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang