-
Bug
-
Resolution: Fixed
-
P4
-
unknown, 1.1, 1.1.4
-
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.
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.
- duplicates
-
JDK-1238418 Menu objects do not respond to setFont
-
- Closed
-
- relates to
-
JDK-1259378 Tiny: problem setting font on a menu
-
- Closed
-