Article View: borland.public.jbuilder.java.swing
Article #12439Switching JMenuBar problem.
From: Chow Kwan Yu
Date: Wed, 30 Dec 1998 00:00
Date: Wed, 30 Dec 1998 00:00
30 lines
1376 bytes
1376 bytes
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:
<368A9A11.5CDE@alumni.ust.hk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,bfb04b9636e13e1b,start X-Google-Attributes: gid111d45,public From: Chow Kwan Yu <bee.c@alumni.ust.hk> Subject: Switching JMenuBar problem. Date: 1998/12/30 Message-ID: <368A9A11.5CDE@alumni.ust.hk> X-Deja-AN: 427014592 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Reply-To: bee.c@alumni.ust.hk Newsgroups: borland.public.jbuilder.java.swing