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

can't left-justify icons in a JMenuItem (need setDefaultTextIconGap()...)

    XMLWordPrintable

Details

    Description



      Name: krT82822 Date: 01/18/99


      ...in BasicMenuItemUI (and corresponding getDefaultTextIconGap())

      original synopsis: "no way to make icons in JMenuItem truly left justified"

      There is no way to get rid of the gap on the left side of a
      JMenuItem. This is controlled by the defaultTextIconGap
      member variable in BasicMenuItemUI.

      This needs a get/set method.

      JPopupMenu popup = new JPopup();

      JMenuItem menuItem = new JMenuItem();
      menuItem.setIcon(someIcon);

      popup.show();

      The image is not left justified even if you set all left justification.
      (Review ID: 52824)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: