File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes HOw to add menu to a button ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "HOw to add menu to a button ?" Watch "HOw to add menu to a button ?" New topic
Author

HOw to add menu to a button ?

david hu
Ranch Hand

Joined: Jul 20, 2001
Posts: 143
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

Joined: Nov 29, 2001
Posts: 162
How about this?

[ January 05, 2002: Message edited by: Jim Hall ]
 
 
subject: HOw to add menu to a button ?