Tags: amtalking, apis, border, core, eliminate, gap, gui, icon, java, jpopupmenu, space

How to remove the gap between border and icon in a JPopupMenu ?

On Java Studio » Java Core GUI APIs

2,697 words with 3 Comments; publish: Mon, 12 May 2008 15:20:00 GMT; (15078.13, « »)

Hi, does anybody know how to eliminate the left gap in a JPopupMenu? I am

talking about the space between the left border an the icon (when it exists)

or the text of the menuitem.

+---+

| [icon] [menuitem_text] [abrev_key] |

| |

| [icon] [menuitem_text] [abrev_key] |

| |

| [icon] [menuitem_text] [abrev_key] |

| |

| [menuitem_text] [abrev_key] |

| |

| [menuitem_text] [abrev_key] |

+---+

/|\

|

+-- This is the space I want to remove.

Thanks

All Comments

Leave a comment...

  • 3 Comments
    • Andrew Thompson <SeeMySites.java-gui-api.developerfaqs.com.www.invalid> wrote in message news:<18w53omrmsh0h$.n2rx0xgzjznl

      $.dlg.java-gui-api.developerfaqs.com.40tude.net>...

      > On 4 May 2004 06:45:05 -0700, Christian wrote:

      >

      > Multi-posting will generally not solve it.

      > <http://www.physci.org/codes/javafaq.jsp#xpost>

      > Please stick to c.l.j.help until you figure out

      > why multi-posting is so counter-productive.

      Hi there,

      sorry for the multi-posting. It was just a newbie mistake ;-)

      #2; Mon, 12 May 2008 15:22:00 GMT
    • On 4 May 2004 22:31:35 -0700, Christian wrote:

      > Hi there,

      > sorry for the multi-posting. It was just a newbie mistake ;-)

      I will guess that to mean you will

      not be doing it again, ..in which

      case it is fine.

      Andrew Thompson

      http://www.PhySci.org/ Open-source software suite

      http://www.PhySci.org/codes/ Web & IT Help

      http://www.1point1C.org/ Science & Technology

      #3; Mon, 12 May 2008 15:23:00 GMT