This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jmenuitem..unseen  RSS feed

 
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
Sheriff
Posts: 24217
38
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
Boost this thread!