Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4113097

AWT Menu spec is missing important info about insert(MenuItem,integer) method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.2.0
    • docs
    • beta
    • generic
    • generic


      The Menu spec says the following about the insert(MenuItem,integer)
      method:
        public void insert(MenuItem menuitem, int index)
           Inserts a menu item into this menu at the specified position.


      The spec should also specify that if the menu item has been part of
      another menu, this method would remove it from that menu. This is
      important information about this method.

      ----------------------------------------------------------------------

      The last paragraph of the above statement should be given the utmost
      importance because if someone is inserting the same menu twice only
      one (the latest one) shows up.

      I'm moving this bug out of the fixed and integrated state and bump
      up its priority accordingly.

      Roger Pham 2/29/2000

            sharonz Sharon Zakhour (Inactive)
            gaurisha Gauri Sharma (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: