• 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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!