Article View: borland.public.jbuilder.java.swing
Article #12801Re: Changing jMenubar at run time
From: John P. McGrath
Date: Sun, 01 Nov 1998 00:00
Date: Sun, 01 Nov 1998 00:00
19 lines
1095 bytes
1095 bytes
Tony Tse <tselm@ha.org.hk> wrote: > How can I change the jMenubar dynamically at run time ? > > I have set up a JFrame which contain 2 jMenubars. I have tried to change > the jMenubar by the method this.setMenubar(jMenubar1) and > this.setMenubar(jMenuBar2). But it seems to be only 1 menubar can work ? how > can I switch between the 2 jMenubar at run time ? I have an application that does this and it works fine. I do not have the source code available right now, but I think it does a validate() on the frame after setting the menuBar. -- Regards, John P. McGrath <mcgrath@enter.net> <jpm@nscs.fast.net>
Technical Details
Message-ID:
<MPG.10a6d439e209b9f89896f6@forums.inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<702jt6$k2f19@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,833ded922f507d2e X-Google-Attributes: gid111d45,public From: mcgrath@enter.net (John P. McGrath) Subject: Re: Changing jMenubar at run time Date: 1998/11/01 Message-ID: <MPG.10a6d439e209b9f89896f6@forums.inprise.com> X-Deja-AN: 407397381 References: <702jt6$k2f19@forums.borland.com> Organization: Software Consulting Services Newsgroups: borland.public.jbuilder.java.swing