🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#11545
From: Bob Byron
Date: Thu, 20 May 1999 00:00
10 lines
989 bytes
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.
Technical Details
Message-ID: <7i2dtb$i384@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,26e9f6e11c3f0b,start
X-Google-Attributes: gid111d45,public
From: "Bob Byron" <forums.inprise.com@radit.com>
Subject: So how do I add the same JMenu to two different JMenuBar's?
Date: 1999/05/20
Message-ID: <7i2dtb$i384@forums.borland.com>
X-Deja-AN: 480354678
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Organization: RAD Systems, Inc.
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing