Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

about JFrame , JPanel and JMenuBar  RSS feed

 
ani kum
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> menubar items under layered by JPanels labels

sounds like you are using java.awt.Label instead of javax.swing.JLabel
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!