摘自java doc, JMenu
Parameters:
s - the text for the menu label
b - can the menu be torn off (not yet implemented)
                              ~~~~~~~~~~~~~~~~~~~~
恐怕要j2sdk1.4.1中才有用吧

解决方案 »

  1.   

    if boolean is true, then the menu content in the menu can be cut away from the menu list.However, this method is not implemented yet, so setting of this boolean value will not have any effect
      

  2.   

    谢谢各位参加讨论。tear-off menu 具体是指什么?(就像哪种菜单?)
      

  3.   

    A menu can optionally be a tear-off menu. A tear-off menu can be opened and dragged away from its parent menu bar or menu. It remains on the screen after the mouse button has been released. The mechanism for tearing off a menu is platform dependent, since the look and feel of the tear-off menu is determined by its peer. On platforms that do not support tear-off menus, the tear-off property is ignored.--引自java.awt.Menu
      

  4.   

    好像没见过这样的
    也许Solaris上面用?