Greetings. I'm using a popup menu in my app like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| PopupMenu contextMenu; .... contextMenu = new PopupMenu(); glCanvas.add(contextMenu); ...and in mouseClicked callback: if (e.getButton() == MouseEvent.BUTTON3) { contextMenu.removeAll(); contextMenu.add("One"); contextMenu.add("Two"); contextMenu.addSeparator(); contextMenu.add("Three"); contextMenu.add("Four"); contextMenu.show(glCanvas, e.getX(), e.getY()); } |
The menu used to show fine, but after some changes it is fully transparent. I mean I can see the shadow that it produces on my glCanvas, but I can't see the menu. If I pass the mouse over the menu items and highlight them, then they start showing up. What's my problem here? I suspect it is something trivial. Could it be that I'm loading a 32-bit transparent .tga texture? But I disable GL_BLEND when I'm done rendering this.