🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3277

Help with Focus!

#3277
From: jetball
Date: Fri, 27 Feb 1998 00:00
21 lines
1110 bytes
Hi All,

I having problem finding the way of detecting when my window has lost
or gain focus.

I tried using the focus listener of the Frame but there was nothing
(no event) when
I hide and bring back the window.

Also, is there a way of knowing the other window that this window is
losing focus to?
for example if i have two windows showing say WinA and WinB. When I
have focus
for WinA and clicking on WinB, I would like to know that focus was
changed
from WinA to WinB.

Please help.
Thanks in advance.
Binh.
Technical Details
Message-ID: <34F65592.89161598@usa.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1488a4,ea11cfadb1eff1a1,start
X-Google-Attributes: gid1488a4,public
X-Google-Thread: 1089d0,ea11cfadb1eff1a1,start
X-Google-Attributes: gid1089d0,public
From: jetball@usa.net
Subject: Help with Focus!
Date: 1998/02/27
Message-ID: <34F65592.89161598@usa.net>
X-Deja-AN: 329013699
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.lang