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

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Thu Aug 1 22:12:06 UTC 2019


Hi, Dmitry.

On 01.08.2019 06:26, Dmitry Markov wrote:
> I agree it is not a good practice to use keyPressed event without corresponding keyReleased. So I added its generation. Please find new version here: http://cr.openjdk.java.net/~dmarkov/8225505/webrev.01/

It looks like the same effect could be achieved if the Tooltipmanager will listen to MenuKey events(If it registers MenuKeyListener for the JMenuItem). It is called from the MenuSelectionManager.processKeyEvent()->JMenuItem.processKeyEvent()->JMenuItem.processMenuKeyEvent().


-- 
Best regards, Sergey.


More information about the swing-dev mailing list