Empty menus spew exceptions

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P1
    • 0.9
    • Affects Version/s: 1.1.2
    • Component/s: 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".

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: