File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes about JFrame , JPanel and  JMenuBar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "about JFrame , JPanel and  JMenuBar " Watch "about JFrame , JPanel and  JMenuBar " New topic
Author

about JFrame , JPanel and JMenuBar

ani kum
Greenhorn

Joined: Dec 08, 2008
Posts: 1
i used JFrame to display my app with attached JPanel and JMenuBar.

but when am running my app... menubar items under layered by JPanels labels
how to resolve this one

javascript: x()
Frown
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

Hi "Ani Kum",
Welcome to the Ranch. We are happy to have you here.

When you create and display your JFrame are you calling the setVisible() before adding the panels and menus?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> menubar items under layered by JPanels labels

sounds like you are using java.awt.Label instead of javax.swing.JLabel
 
 
subject: about JFrame , JPanel and JMenuBar
 
Similar Threads
Image is always behind the menu (swing)
Multiple JMenuItem layout
JMenuBar not using default alignment?
Artifacts appearing outside of JScrollPane
Replacinf Java cup icon of JFrame and changing default folder look in JTree