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

Menu Bar  RSS feed

 
arun iyer
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I have got a frame and a button on it. I am opening another frame from that. I am not able to set the menubar in the new frame.
I am setting the menubar in the following method:

JMenuItem menuItem = new JMenuItem("Do This");
JMenu menu = new JMenu("Global");
menu.add(menuItem);
JMenuBar menuBar = new JMenuBar();
menuBar.add(menu);
setJMenuBar(menuBar);
Wanted help at the earliest.

Arun Iyer
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!