JDK-4096574 : JMenuItem does not allow users to specify a hot-key label
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.1.4
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_2.6
  • CPU: generic
  • Submitted: 1997-12-03
  • Updated: 1998-02-19
  • Resolved: 1998-01-22
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.2.0 swing1.0fcsFixed
Related Reports
Relates :  
Description
Let's say, I have a "Add" menu item, and I want to indicate <Ins> as a hot-key (not a menu shortcut), there is no clean way to do this. Currently the
only way that I can do this is:

new JMenuItem("Add     <Ins>");
new JMenuItem("Delete  <Del>");

The problem with this approach is that you have to play with the spaces to make sure that all your menu items are aligned. The real problem occurs at the localisation centers.

Note that Motif automatically performs the alignment automatically (after having specified the key accelerator)

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: swing1.0fcs INTEGRATED IN: swing1.0fcs VERIFIED IN: swing1.0fcs
14-06-2004

EVALUATION Fixed in 1.0pre FCS
11-06-2004

WORK AROUND
11-06-2004

SUGGESTED FIX
11-06-2004

PUBLIC COMMENTS
10-06-2004