United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4953840 Add override of getFontMetrics to JComponent
JDK-4953840 : Add override of getFontMetrics to JComponent

Details
Type:
Enhancement
Submit Date:
2003-11-13
Status:
Resolved
Updated Date:
2003-11-27
Project Name:
JDK
Resolved Date:
2003-11-27
Component:
client-libs
OS:
solaris_7
Sub-Component:
javax.swing
CPU:
sparc
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
5.0 (b30)

Related Reports

Sub Tasks

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);

                                    

Comments
EVALUATION

Yes, this override should be added.
###@###.### 2003-11-19
                                     
2003-11-19
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger-beta

FIXED IN:
tiger-beta

INTEGRATED IN:
tiger-b30
tiger-beta


                                     
2004-06-14



Hardware and Software, Engineered to Work Together