I have created small table editor, cells are extended JLabels. I am battling with strange problem. I am able to select and highlight cell(even with right mouse button - RMB ), open popup menu (hey, e.isPopupTrigger() on different OS kicked my ass ;) ), but when I move mouse to different cell, click with RMB, somehow it seems, that mousePressed event is not fired and it is consumed somewhere (with debugging I found that the flow is going to the mouseReleased() directly). And I can't find a solution
I found somewhere, that adding Tooltip could be problem..it wasn't for me.
It seems, that JPopupMenu.show() is consuming mousePressed event, could be this avoided somehow?
Thanks for ideas.
Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.
Sorry, my bad. I accused wrong victim. show() is innocent, so show must go on!
Something else is consuming mousePressed event, sadly I am working on large application and still I wasn't able to find the problem. So I haxored it somehow.
Anyway, thanks for concern and ideas.
I'd appreciate it if you pronounced my name correctly. Pinhead, with a silent "H". Petite ad:
a bit of art, as a gift, the permaculture playing cards