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.

Bug 75800 - Assigning Mnemonic property on button causes odd behavior
Summary: Assigning Mnemonic property on button causes odd behavior
Status: RESOLVED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-02 19:44 UTC by rabbe
Modified: 2006-09-19 13:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rabbe 2006-05-02 19:44:59 UTC
Create a JFrame form
Add a JButton
Set the Mnemonic to F

Now press ALT+F Rather than displaying the Netbeans "File" menu the button added
to the JFrame appears pressed.
Comment 1 Marian Mirilovic 2006-05-03 08:48:13 UTC
I am sorry but I don't understand this report ;(

Does it mean: you created JFrame add the JButton into this frame and run this
frame, than 'f' causes button push ? or what ?
Comment 2 rabbe 2006-05-05 21:23:22 UTC
This is happening on Windows with both Mustang and Tiger 1.5.0_06

It happens while the form is in the designer.  What happens is that the mnemonic
on the form is given control.  If you press alt+f the menmonic on the form in
the designer is triggered and the design time button will appear to have been
pressed.  The mnemonic should only work at runtime.

Before the mnemonic is assigned to the button alt-f triggers the file menu in
netbeans as it should.  After the button is assigned a mnemonic value, alt-f
will no longer work while the form is open in the designer.

I hope this clears it up.
Comment 3 Jan Stola 2006-09-05 12:03:12 UTC
I am sorry, I am not able to reproduce this issue. Could you, please, provide 
more details? What look and feel do you use? What is selected (in the IDE/in 
the form) when you invoke Alt+F? Does it happen always or only for some 
configurations (e.g. forms, selection, l&f etc.)?
Comment 4 Jan Stola 2006-09-19 13:45:03 UTC
No additional information provided => closing as WORKSFORME.