Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JMenu closes after checking/unchecking JCheckBoxMenuItems

801912Jun 9 2007 — edited Jun 12 2007
I added a JMenu to an existing JPopupMenu, and added a few JCheckBoxMenuItems, followed by a JButton to the JMenu. Currently, when I open the JMenu and check/uncheck a JCheckBoxMenuItem, the JMenu closes.

So, my question is, how do I get the JPopupMenu, JMenu and all the JCheckBoxMenuItems to stay open while I click multiple JCheckBoxMenuItems? I basically want everything to stay open until I push the JButton. I believe this is possible, but I don't know how to go about it. And I need help ASAP. Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 10 2007
Added on Jun 9 2007
14 comments
370 views