Article View: borland.public.jbuilder.java.swing
Article #1104Re: How to set width of JMenuItem on JMenuBar
From: pnichols
Date: Fri, 26 Mar 2004 20:20
Date: Fri, 26 Mar 2004 20:20
19 lines
1550 bytes
1550 bytes
John T. Dow wrote: > I posted this to the ide group but have received no answer. It's > possibly a swing question anyway. > > I need a menu choice on the default menu bar which when selected doesn't > cause a submenu to drop down but triggers its action immediately. > > The problem I'm having when I put a jMenuItem (not a jMenu) on the menu > bar is it is much wider than the other things on the bar, all of which > are jMenu. > > I don't see how to control the width of a jMenuItem on the bar. > > What am I missing? > > John It should auto-adjust to the font and text you are using.
Technical Details
Message-ID:
<40648c35@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mailReferences:
<406485B5.5090909@johntdow.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,318be48f988251ce X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2004-03-26 12:10:08 PST Message-ID: <40648c35@newsgroups.borland.com> From: pnichols <paul@comp.net> Subject: Re: How to set width of JMenuItem on JMenuBar Newsgroups: borland.public.jbuilder.java.swing Reply-To: paul@comp.net Mail-Copies-To: paul@comp.net Date: Fri, 26 Mar 2004 15:20:35 -0500 References: <406485B5.5090909@johntdow.com> Lines: 19 Organization: clc User-Agent: KNode/0.7.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit NNTP-Posting-Host: 68.71.188.25 X-Trace: newsgroups.borland.com 1080331317 68.71.188.25 (26 Mar 2004 12:01:57 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail