Article View: borland.public.jbuilder.java.swing
Article #9256Re: JMenuItem and Icons
From: John P. McGrath
Date: Fri, 05 May 2000 00:00
Date: Fri, 05 May 2000 00:00
20 lines
1214 bytes
1214 bytes
On Thu, 4 May 2000 12:43:50 -0400, Arjuna Chala wrote: > I am trying to line up menu items with text only and menu > items which have an icon. For example if you look at the > JBuilder project menu all the text is aligned to the same > margin. It does not matter if they have an icon or not. > > When I try to do the same thing, the left margin of the text > on menu item with an icon is offset by the width of the icon. > In the case where the menu item does not have an icon there > is no consideration of an offset. The easiest solution is to give every menu item in a menu an equal sized icon. On the menu items for which you do not want to display an icon, just use a "blank" icon. :o) -- John P. McGrath <JPMcGrath@fast.net> <jpm@nscs.fast.net>
Technical Details
Message-ID:
<MPG.137c3e3fb0aeac519898e6@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3911a5e0@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,efb00316d031a612 X-Google-Attributes: gid111d45,public From: John P. McGrath <JPMcGrath@fast.net> Subject: Re: JMenuItem and Icons Date: 2000/05/05 Message-ID: <MPG.137c3e3fb0aeac519898e6@forums.borland.com> X-Deja-AN: 619481721 References: <3911a5e0@dnews> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing