Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JMenu, JCheckBoxMenuItem  RSS feed

 
Chhaya Dhanani
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jMenu which i populate dynamically everytime i open a new JInternalFrame with the title of the int.frame as a JCheckboxmenuitem.
Now i want to remove the item which corresponds to the title of the int.frame when the frame is closed..
how do i do this..
A small code snippet would definitely help
Thanx in advance
Chhaya
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chhaya,
Use the menu label.

Regards,
Manfred.
 
Chhaya Dhanani
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Manfred,
I have already figured that out, but i will try ur solution too
Just wanted to say Thanx
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!