File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HOw to add menu to a button ?

 
david hu
Ranch Hand
Posts: 143
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In bill brodgen's book, it's said that adding menus to an application requires a class that implements the MenuContainer Interface. The classes in the java.awt package that implement MenuContainer are Component, Frame, Menu, and MenuBar, so practically anything on the screen can host a menu.
My question is how to add menu to a button?
 
Jim Hall
Ranch Hand
Posts: 162
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about this?

[ January 05, 2002: Message edited by: Jim Hall ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic