• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic building of Jmenu

 
Chhaya Dhanani
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a JMenu on my MenuBar called as Window
I am opening a jinternal frame everytime i click on a button
How can i dynamically load the Jmenu with the frame name or any reference to the frame.
Also these are going to be JCheckBoxMenuItem. I want the menuitem corresponding to the currently active focussed internal frame to be checked.
How do i achieve this
Please HELP
Chhaya
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chhaya,
Don't know if it will help. But here is a first pass on what I think you are trying to do. The code below works and might help your cause.

Enjoy,
Manfred.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!