JMenu should handle long menus more gracefully

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.4.0
    • Component/s: client-libs
    • None
    • generic
    • solaris_2.6, windows_2000

      The attached variant of the J2SDK Stylepad demo creates a font menu showing all available fonts. It's not unusual that a host system provides more fonts than can be shown in a simple one-column menus. It turns out that JMenu doesn't handle this case very well:
      - on Solaris, it attempts (unsuccessfully) to fit all menu items on the screen. As a result, each item may get only a few pixels height, making the font names a bit difficult to read.
      - on Windows, the menu item height is constant, and the menu simply runs off the bottom of the screen.

      Other toolkits provide more elegant solutions. On the Mac, for example, a long menu simply scrolls up and down as needed to make all items visible.

            Assignee:
            Peter Zhelezniakov
            Reporter:
            Norbert Lindenberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: