aspose 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 Spring in Action this week in the Spring 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 ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HOw to add menu to a button ?