I have a class I've created, and in the mouseDown method, I create a popup menu via the .show() method, like shown in the example in the API.
I have a few of these classes on the screen.
If I hover over one of these components and right click, I can keep popping up this menu, and selecting different things as many times as I want, no problem.
Now if I go over to another one afterwards and try to pop up a menu, the menu loads really slowly and sluggishly. It lets me hover over the different items, which change colour, but it won't let me select an item or dismiss the menu (or do anything else on the GUI - I have to kill the program).
It's weird as it doesn't matter which one I start with, but going to a second one will always lock up. Should I be using the showMenuAsync() method rather than just the show() or something?