popup menu appears behind images
I'm building a project that displays images on the screen, when the user right clicks on them, a popup menu pops up.
The problem is that the popup menu appears behind the images. Anyone know why?
Some snippets of code:
//in MousePressed() function
//in paint() function
imageSize, imageSize, null,this);
I've tried using the glass pane, but couldn't get that to work, and I also set the popup menu to be heavyweight, which did make the popup menu appear above the images, but the submenus were still below, and also it couldn't detect when I clicked on a menu item.
Thanks in advance for any help
Be sure to call super.paint() as the first line in your paint method...not sure if this will compeletely resolve it, but can help to resolve alot of other issues as well.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center