Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Run JApplet and no JMenuBar - Help!!

 
Stephen Batsas
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!
I have attached a JMenuBar to a JApplet using setJMenuBar(..). When I run the Applet (browser or viewer) no JMenuBar appears. However if I click (several time) on to the Applets content pane near left top - sometimes a malformed menu bar appears with one of the submenus that was added at design.
Any-one have any thoughts on this?
Regards
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stephen,
Not sure what you are doing, but the example below works great for me using Win2K and JDK1.3.

To run it you can type the following on the command line:
appletviewer AppletMenu.java
Regards,
Manfred.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic