• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jmenuitem..unseen

 
Maha Hassan
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using a jmenubar with jmenuitmes and jbars withina frame that contains a panel ,,BUTTTTT
the menuitems are HIDDEN behind the panel ,,,what shall i do
please help me
 
Tom McC
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Maha,
I'm not sure a menu can be (at least easily) hidden behind other components. Are you sure that you're using the JFrame's setJMenuBar(JMenuBar) method to attach the menu to the frame? If so, have you added all the JMenuItems to the JMenuBar correctly?
Tom
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Maha,

You're using a "heavyweight" AWT component like a Canvas or Panel with a "lightweight" Swing JMenuBar. You can't mix Swing and AWT components unless you really know what you're doing. So pick one or the other, and your problem will go away.

I'm going to move this to our "Swing/AWT/etc" forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic