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

Avoid creating native font peers for pure Swing apps

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 7
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Native font peer is always set on creation of java.awt.Frame and other top level windows.
      It seems to be only used by child heavyweight widgets (they copy font from parent on creation).
      Toplevel components do not use fonts themselves (title bars are handled by Windows.

      However, for pure Swing app such as Notepad or Netbeans there are no heavyweight components
      except top levels. Therefore, (at least on Windows) this extra work can be avoided.

        Attachments

          Activity

            People

            • Assignee:
              dav Andrei Dmitriev (Inactive)
              Reporter:
              igor Igor Nekrestyanov (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: