Article View: borland.public.jbuilder.java.swing
Article #12448Re: Switching JMenuBar problem.
From: Matt Krevs
Date: Mon, 04 Jan 1999 00:00
Date: Mon, 04 Jan 1999 00:00
33 lines
1503 bytes
1503 bytes
Call validate() for the frame after you change the menu Chow Kwan Yu wrote in message <368A9A11.5CDE@alumni.ust.hk>... >hi, can anyone help me... > >the background of my application is: > >I have put 2 JMenuBar (say barA and barB) into the JFrame (say frameX). > >Initially, in jbinit() of frameX, barA is set: >this.setJMenuBar(barA); > >one menu item of barA invoke: >this.setJMenuBar(barB); >another menu item of barB invoke: >this.setJMenuBar(barA); > >when I compiled and run the program, barA is shown on the frame >as expected. > >However, when the first time I click that menu item to switch to barB, >the region showing the menu doesn't change. It changes correctly only >if I resize the frame. > >For the second and third time and so on. The switching between barB and >barA are running very fine. Only problem occurs at the first time to >switch the menu bar. > >Any idea on which places I should take care to solve the problem? > >thank you in advance. > >Bee
Technical Details
Message-ID:
<76omku$7693@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<368A9A11.5CDE@alumni.ust.hk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,bfb04b9636e13e1b X-Google-Attributes: gid111d45,public From: "Matt Krevs" <mattkrevs@flex.com.au> Subject: Re: Switching JMenuBar problem. Date: 1999/01/04 Message-ID: <76omku$7693@forums.borland.com> X-Deja-AN: 428409502 References: <368A9A11.5CDE@alumni.ust.hk> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing