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

JMenu should handle long menus more gracefully

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: