🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: So how do I add the same JMenu to two different JMenuBar's?

#11465
From: Dion Gillard
Date: Sun, 23 May 1999 00:00
15 lines
1296 bytes
In article <7i2dtb$i384@forums.borland.com>, forums.inprise.com@radit.com 
says...
|  I tried adding a menu1 (an instance of JMenu) to menuBar1 (an instance of
|  JMenuBar), then I added menu1 to menuBar2 (another instance of JMenuBar).
|  Unfortunately, that seemed to remove it from menuBar1.  Is there a way I can
|  easily clone menu1, or in some other way add it to both JMenuBar's?  I want
|  the instance to reside on both and perform the same functionality from both.
|  Why on earth would it remove itself from menuBar1?
|  
|  Thanks,
|  Bob Byron
|  RAD Systems, Inc.
Use an Action object and add that to the menu, rather than a menu item.

dIon
Technical Details
Message-ID: <MPG.11b27ead8ad98b5998968a@news.ozemail.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7i2dtb$i384@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,26e9f6e11c3f0b
X-Google-Attributes: gid111d45,public
From: dion@multitask.com.au (Dion Gillard)
Subject: Re: So how do I add the same JMenu to two different JMenuBar's?
Date: 1999/05/23
Message-ID: <MPG.11b27ead8ad98b5998968a@news.ozemail.com.au>
X-Deja-AN: 481133417
Distribution: world
References: <7i2dtb$i384@forums.borland.com>
X-Trace: ozemail.com.au 927456214 203.108.100.98 (Sun, 23 May 1999 20:43:34 EST)
Organization: Multitask Consulting
NNTP-Posting-Date: Sun, 23 May 1999 20:43:34 EST
Newsgroups: borland.public.jbuilder.java.swing