This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
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 The Software Craftsman this week in the Agile 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: 10696

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
Have you tried LearnNowOnline?
subject: about JFrame , JPanel and JMenuBar