Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HOw to add menu to a button ?

 
david hu
Ranch Hand
Posts: 143
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about this?

[ January 05, 2002: Message edited by: Jim Hall ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic