Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help me in MenuBar Creation  RSS feed

 
Geetha Sarath
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to create a menubar in my application.
Iam able to create without error,but the problem is..
Instead of displaying the menubar in the top of the screen,Iam getting
in the left of the screen.
Please help me to get in the top

Thanks and Regards,
Geetha
 
Parth Bhatt
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !!
It seems you're using BorderLayout to arrange things on to your Frame. Now at the time of adding the Menubar to your Frame, use the foll statement

XXXXXXX.add(menuber,Borderlayout.NORTH);

where,
XXXXXXX is your Container that holds your MenuBar
menubar is your menubar object that you wanna add

This should FIX your problem...If it dosent, just specify how you're setting up the Layout of your application...!! i.e. wht layout manager you're trying to use. Also specify some details about the GUI of your application....!!
 
Geetha Sarath
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot..
It is working fine..


Regards
Geetha
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!