• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dynamic building of Jmenu

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic