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

Empty menus spew exceptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 0.9
    • 1.1.2
    • client-libs
    • None
    • 0.9internal
    • generic
    • generic
    • Not verified

      I create a JMenuBar and then start adding JMenus. If one of the JMenus
      is empty -- that is, no
      JMenuItems have been created/added to it yet -- then at run time all
      kinds of null pointer
      exceptions occur and the menu bar does not display. IMO, it would be
      desirableto display the
      title of the empty JMenu with no popup below it.

      This is Swing-0.3 with the Sun VM (jdk1.1.3) on Win95. I don't know
      whether you would
      consider this a bug or a "feature".

            gsaab Georges Saab
            gsaab Georges Saab
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: