- Topics: 159
- Replies: 2945
- Total: 3104
Also this example is a very bad one. You shouldn’t show a popup menu right after you dismiss the previous one. You should show one menu and then add SubMenus to it, not show other PopupMenus after the click (they will show up on in the place of the click, so it might be a bit random).
Instead try using addSubMenu() method, it will look and feel more natural.