NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

JMenuBar not showing up

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Tanis.7x



Joined: 19 Dec 2009
Posts: 2

PostPosted: Sat Dec 19, 2009 5:03 pm    Post subject: JMenuBar not showing up Reply with quote

I have a JApplet in which I want to replace the default "Applet" menu in the menu bar with my own menu bar. Unfortunately, due to the constraints of the project, I cannot use the GUI builder.

So I created a new JMenuBar and in my init method I used setJMenuBar to set the menu bar to my new menu bar, but when I run the Appet, it doesnt have my menu bar, only the old "Applet" menu.

Am I missing a setting that I need to use to turn off the Applet menu?
Back to top
Tanis.7x



Joined: 19 Dec 2009
Posts: 2

PostPosted: Mon Dec 21, 2009 9:16 pm    Post subject: Reply with quote

Quick update- It also happens with another compiler that I use. So almost certainly something with the code.

I create just one menu item (for now), add it to a new menu, then add that menu to the menu bar. I then use setJMenuBar to set the menu bar to my new menu bar, but I get nothing.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo