This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Make a change to a Java file in the editor and then close the editor. A dialog box comes up that says: File <filename> is modified. Save it? The choices are Save/Discard/Cancel. All three have mnemonics. The mnemonics for Save and Cancel should be removed because having them there violates the Java Look and Feel Guidelines and makes Netbeans dialog boxes inconsistent with one another. For the guidelines I refer to, see: http://java.sun.com/products/jlf/dg/higl.htm#51121 In the section called "OK and Cancel Buttons" it says: "Do not add a mnemonic to the Cancel button." In the section called "Default Command Buttons" it says: "Do not add a mnemonic for the default command button." This means that the mnemonic for Save (the default button) and for Cancel should be removed. The mnemonic for Discard should be kept.
Target milestone -> 3.3
Component change: ui -> editor
Please realize, that with the fix of 10835, you don't need JButtons in order to use mnemonics. Therefore, the JButton for Save can be replaced with an Object/String, the JButton for Discard can be replaced with an Object/String and a value in the properties file with an & for the mnemonic, and the JButton for cancel can be replaced with NotifyDescriptor.CANCEL_OPTION.
I think this dialog is defined in openide, not in editor module. Reassign if I am wrong.
Fixed in maintrunk.
Why was the entry in the bundle removed for the save mnemonic but not for the cancel one? Also, my comment below (which would make the code nicer by using regular constants wherever possible) seems to have been ignored. Why is that?
My cleanup comments were not addressed, so I've created a patch with the changes. Please apply it.
Created attachment 3970 [details] Patch which simplifies mnemonic and options.
I have applied the patch. Btw. Rochelle do not you want to ask for a developer status for openide and core?
verified in [nb_3.3.1](rc3-20020129)
verified in [FFJ3.0]+[JP3.2] with [jdk1.4](91) on [Solaris-CDE](5.8) && [Win2K]
Resolved for 3.4.x or earlier, no new info since then -> closing.