🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JPopupMenue focus as a heavy elementn

#8926
From: John P. McGrath
Date: Thu, 29 Jun 2000 00:00
20 lines
1257 bytes
On Wed, 28 Jun 2000 18:15:47 +0200, Udi Nakar wrote:

> When the JPopupMenu is not contained in the top-level window
> it is displayed as an instance of JWindow. In this case the
> requestFocus() method doesn't get the focus to the popup.
> How can I get the focus to the popup.

I spent quite a bit of time on this, trying to get a popup to respond to 
the keyboard the way you would expect it to.  Gawd!  what a mess that 
was.

I thought it would be an easy task, but gave up after I had spent more 
than 3 times my original estimate on it.  That was the last problem I ran 
into.  I was starting to look at the JMenu code to as a clue to how it 
dealt with the issue, when good sense prevailed and I abandoned the idea.

-- 
John P. McGrath
<JPMcGrath@fast.net>
<jpm@nscs.fast.net>
Technical Details
Message-ID: <MPG.13c4cd8aa55fab7e9899f2@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <395a1441@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,5f7c1b7a9f62decb
X-Google-Attributes: gid111d45,public
From: John P. McGrath <JPMcGrath@fast.net>
Subject: Re: JPopupMenue focus as a heavy elementn
Date: 2000/06/29
Message-ID: <MPG.13c4cd8aa55fab7e9899f2@forums.borland.com>
X-Deja-AN: 640325930
References: <395a1441@dnews>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing