JDK-4414827 : java.awt.MenuBar.setFont() spec needs to be relaxed
  • Type: Bug
  • Component: docs
  • Sub-Component: guides
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_2.6
  • CPU: generic
  • Submitted: 2001-02-13
  • Updated: 2001-04-26
  • Resolved: 2001-04-03
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
1.4.0 betaFixed
Related Reports
Relates :  
Relates :  
Description
On some platforms, native MenuBar/MenuItem might not have the ability to change the fonts in it. Due to that, there's no way of implementing correct 
setFont() behavior for such a MenuBar/MenuItem.

Specifically, APPLE's MAC OS X graphic library doesn't allow setting fonts 
in the MenuBar/MenuItem. Need to relax the MenuBar/MenuItem.setFont() spec in order for Apple to be able to provide compatible jdk implementation.

Since MenuBar/MenuItem inherit setFont() from awt.MenuComponent, 
I propose to add the following sentence to the java.awt.MenuComponent.setFont()
spec:
  "setFont() might not work if underlying native menucomponent  
does not support setting of the font"

This bug is related to another bug 4414599, which reports the 
fact that MenuBar.setFont() behavior is also incorrect in our reference 
implementation.

Please see the following message from Apple:

Date: Mon, 5 Feb 2001 18:53:55 -0800
From: Peri Frantz <###@###.###>
Cc: Peter Steinauer <###@###.###>, Barry Langdon-Lassagne <###@###.###>, Peri Frantz <###@###.###>
To: Kirill Soshalsky <###@###.###>
Subject: Exclusion Request for MenuBarTest0001

Kirill,

We've got another Exclusion request, based on platform dependent 
behavior.

MenuBarTest0001 (jrt attached) assumes that the font, font size, and 
font style in the menubar is setable.  This is not true on a Macintosh.

Thanks, once again,  Peri

<Attachment missing>

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: merlin-beta INTEGRATED IN: merlin-beta
14-06-2004

PUBLIC COMMENTS .
10-06-2004

EVALUATION See 4416026 for an evaluation of this general class of bugs. kathleen.walrath@Eng 2001-02-16 Yes. Fixed for merlin. sharon.zakhour@eng 2001-03-23
16-02-2001