aspose 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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "about JFrame , JPanel and  JMenuBar " Watch "about JFrame , JPanel and  JMenuBar " New topic

about JFrame , JPanel and JMenuBar

ani kum

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()
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9995

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
I agree. Here's the link:
subject: about JFrame , JPanel and JMenuBar
Similar Threads
Artifacts appearing outside of JScrollPane
Multiple JMenuItem layout
JMenuBar not using default alignment?
Image is always behind the menu (swing)
Replacinf Java cup icon of JFrame and changing default folder look in JTree