[Java-gnome-developer] Trivia: menus
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2011-02-11 05:56:01
|
Trivia point of the day: If you hide a MenuBar, then any accelerators you've hooked up via the various MenuItem's setAccelerator() cease to function. "That's annoying" The solution is to create Actions, use Action's setAccelerator(), and then Action's createMenuItem() to get yourself {drum role} a MenuItem, which you can then use. And meanwhile the accelerators work regardless. Yeay. AfC Sydney |