Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Kiswar Malik   on Jun 19 In Java Category.

  
Question Answered By: Ellen Simpson   on Jun 19

The problem with your code is that you added MenuBar
before declaring it. I'm not sure if your way of
adding a menubar  is right/acceptable. Try using this
instead:

frame.setMenuBar(menubar);

Byt remember to declare the menubar first before
adding it.

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on setLayout() and add() a menubar on the frame Or get search suggestion and latest updates.


Tagged: