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

Swing Menus - text/icon/checkmark alignment schemes severely broken

XMLWordPrintable

    • generic, x86, sparc
    • generic, solaris_2.6, windows_xp



      Name: krT82822 Date: 12/22/98


      When a menu pops up - from a right-click, JMenuBar, or whatever, the individual items in the list should follow some basic alignment rules so that the
      whole menu appears consistent.
        - WinLF - Extra space is allocated along the left edge of the menu for the check/radio mark for any potentially present JCheckBoxMenuItem or
      JRadioButtonMenuItem components even if there are none. By convention on Win32, the checkmark in a menu is actually a depressed button
      representation of the menuitem's icon (if any), and it appears in the same 'column' as the icons for other non-check items.
        If no icon is supplied by the JCheckBoxMenuItem, a default checkmark icon should be used. The text should be left aligned for the whole menu.
      The accelerators (called 'shortcuts' in Win32) should also be left-aligned along the right side of the menu (bug #4113639) for the entire menu. This
      should look and feel like a native Win32 application.
        - JLF - Similar problems with WinLF: Wasted space, and text should line up.
        - MotifLF - Slightly better than JLF/WinLF - less wasted space, but text is still not lined up between check (bug #4133790), radio, and regular items.
      (Review ID: 48242)
      ======================================================================

            kizune Alexander Zuev
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: