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

setFont(font) on MenuBar items does not take effect

XMLWordPrintable

    • beta
    • generic, x86, sparc
    • solaris_2.4, solaris_2.5.1, windows_95

      When setFont(font) is called on a MenuBar item, the font does not change.

      The customer supplied a test case to demonstrate the problem. The
      application allows the user to change the font type or font size. Upon
      changing the font, an event occurs which causes a call to the
      setMenuBarFont( Font font ) method. This method iterates through the
      MenuBar calling setFont(font) on each menu and menu item. However, the
      font change does not occur.

      The change can be forced by removing the MenuBar and then re-adding it,
      which the method forceMenuFontChange() does. Run the application with and
      without the command-line option "FORCE" to see the difference. This
      workaround is not an acceptable solution however, because it causes an
      undesirable side-effect as described in BugId 4028130.

      =================================================
      [another user. joon.oh@Eng 1997-11-21]

      Windows 95 allows the user to specify the default
      font. Sun's AWT doesn't honor this choice. Menus
      appear in the same font regardless of the user's
      choice of fonts.

            ibdsunw Ibd Ibd (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: