Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4953840

Add override of getFontMetrics to JComponent

XMLWordPrintable

    • b30
    • sparc
    • solaris_7

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

            svioletsunw Scott Violet (Inactive)
            svioletsunw Scott Violet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: