• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JMenuBar error.

 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I have a JMenuBar with some JMenus.
How to set the helpmenu of a JMenuBar?
Error:exception in thread "main" java.lang.Error: setHelpMenu() not yet implemented.
at javax.swing.JMenuBar.setHelpMenu(unknown source)
code:
JMenuBar jmb=new JMenuBar();
JMenu jhelp=new JMenu("Help");
jmb.add(Menu1........ etc.
jmb.setHelpMenu(jhelp);
****end of code
Happy middling with java. :
Netharam.
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
According to the API documentation here, "this method is not yet implemented and will throw an exception".
I guess you have to add your help menu in a different way...
 
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the sun tutorial has a good example for just what u r looking for.
here is the link
 
Roy Ben Ami
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oops!!!
terribly SORRY.
its late here and apperntly i need sleep!
that post was meant for another question .
sorry again.
as a side note, now that im here, u can try to use the MenuBar in the awt package instead of the JMenuBar in swing for that. (ofcourse only if u r willing to change your applictaion to awt instead of swing).
 
The knights of nee want a shrubbery. And a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic