File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

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 ]
I agree. Here's the link:
subject: HOw to add menu to a button ?
It's not a secret anymore!