my requirement is I have a JButton and on clicking it, a JPopupMenu will be opened whose menu elements are JButtons. Upto this I am fine. Now, When I click on one of the menu element JButton, I need some other menu to be opened. When this second menu is opened, the first menu should stay opened. I am able to create both the menus successfully. But when I click the first menu's JButton element, it is opening the second menu but the first menu is getting closed. How to keep this menu stay opened even after clicking it's element. the main thing here is the elements of the menu is JButtons so I need the help with this in mind. Please help. This is very very urgent for me. Please. any solution with source code is appreciated. If it is not possible then atleast code chunk suggestion to achieve this or any source materual will be great.