It seems after showing a JPopupmenu
using the show()
method it requires 2 clicks to select a JButton
or any component with a ActionListener
attached to it; one click for the popup menu to disappear and another to be actually detected by the components with ActionListener
.
Is there anyway to make it so it clicking on a button the first time is detected?