🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: problem on using JMenuBar

#12185
From: Anne JANSSENS
Date: Wed, 10 Feb 1999 00:00
16 lines
1141 bytes
I've also run into that problem but not with a textfield, it was when use
the arrows to go through a JList

I think that it comes not from JMenuBar, but the component in which you type
some keys !

In fact, you try to enter some keys in your textfield, the keyEvent is
passed through all listeners of keyEvents,
and as it is your frame which has the focus, the keyEvents are delivered at
the end to the JMenuBar.

You must give explicitely the focus at your textfield, your frame must lose
the focus when your enter
the textfield and perhaps you have to add you own Keylistener !

Hope it could give you some hints, :)Anne
Technical Details
Message-ID: <79s3rf$bbp6@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36AD2C5D.430DDD06@784.hypermart.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,4085bebcd0015c27
X-Google-Attributes: gid111d45,public
From: "Anne JANSSENS" <recherche@generix.fr>
Subject: Re: problem on using JMenuBar
Date: 1999/02/10
Message-ID: <79s3rf$bbp6@forums.borland.com>
X-Deja-AN: 442814677
References: <36AD2C5D.430DDD06@784.hypermart.net>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing