-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
1.4.0
-
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.
- 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.
- duplicates
-
JDK-4518295 JMenu not displayed correctly when number of JMenuItems is huge
-
- Open
-