<Swing Dev> [14] RFR 8225505: ctrl-F1 does not show the tooltip of a menu item (JMenuItems)

Dmitry Markov dmitry.markov at oracle.com
Thu Jun 27 09:59:22 UTC 2019


Hello,

Could you review a fix for jdk14, please?

 	bug: https://bugs.openjdk.java.net/browse/JDK-8225505 <https://bugs.openjdk.java.net/browse/JDK-8225505>
 	webrev: http://cr.openjdk.java.net/~dmarkov/8225505/webrev.00/ <http://cr.openjdk.java.net/~dmarkov/8225505/webrev.00/>

Problem description:
When tool tip is set for JMenuItem ToolTipManger registers a special key listener for this item. The listener is intended for processing tool tip key bindings, (i.e CTRL + F1) and show or hide tool tip message. However BasicPopupMenuUI.MenuKeyboardHelper handles all key events for menu elements. In other words a menu element such as JMenuItem does not handle a key event directly. As a result the tool tip messages, which is set for JMenuItem, cannot be shown using CTRL + F1 combination.

Fix:
BasicPopupMenuUI.MenuKeyboardHelper should detect tool tip key sequence and forward it to currently highlighted(selected) for further processing. 

Thanks,
Dmitry 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/swing-dev/attachments/20190627/68fd41ce/attachment.html>


More information about the swing-dev mailing list