JDK-4953840 : Add override of getFontMetrics to JComponent
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2003-11-13
  • Updated: 2017-05-16
  • Resolved: 2003-11-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b30Fixed
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
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta FIXED IN: tiger-beta INTEGRATED IN: tiger-b30 tiger-beta
14-06-2004

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