Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java in General and the fly likes JMenu items creating problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JMenu items creating problems" Watch "JMenu items creating problems" New topic
Author

JMenu items creating problems

Ashish Bhaskar
Greenhorn

Joined: Mar 26, 2001
Posts: 2
I have a application using the JMenuBar withe some MenuItems . The application frame also contains some other components like buttons , textfields etc. The problem is that the menuitem are hiding below the other components whenever the menubar is clicked. That is i am able to see the menuitems which are above the other components. Please reply soon
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
If you have a JMenuBar you need to be using JMenu's and JMenuItems. If you mix AWT components (which are heavyweight) and Swing components (which are lightweight = no os peer component) the AWT stuff will hide the swing stuff.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Ashish Bhaskar
Greenhorn

Joined: Mar 26, 2001
Posts: 2
Hi Cindy,
I am using JMenu with JMenuItems ....but the problem is not over..
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
What about the other components you mentioned? Are they JButtons and JTextFields or are you using AWT components?
 
jQuery in Action, 2nd edition
 
subject: JMenu items creating problems
 
Similar Threads
Separating View-Controller in MVC
enabling & disabling menuitems
SystemLookAndFeel still using Win2000 properties under WinXP???
enabling & disabling menuitems
can we lock desktop.........Urgent