🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1103

How to set width of JMenuItem on JMenuBar

#1103
From: John T. Dow
Date: Fri, 26 Mar 2004 19:34
15 lines
1438 bytes
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
Technical Details
Message-ID: <406485B5.5090909@johntdow.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,318be48f988251ce,start
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2004-03-26 11:39:56 PST
Message-ID: <406485B5.5090909@johntdow.com>
Date: Fri, 26 Mar 2004 14:34:13 -0500
From: "John T. Dow" <john@johntdow.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: How to set width of JMenuItem on JMenuBar
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 4.15.244.46
X-Trace: newsgroups.borland.com 1080329666 4.15.244.46 (26 Mar 2004 11:34:26 -0800)
Lines: 16
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail