Article View: borland.public.jbuilder.java.api
Article #3476Re: Window
From: Timothy Stewart
Date: Wed, 31 Dec 1997 00:00
Date: Wed, 31 Dec 1997 00:00
20 lines
1137 bytes
1137 bytes
Carl Hewitt wrote: > Is there a method to find the topmost window in an application? Without looking at the API docs, I don't know of a method offhand for any given component, but you should be able to do something like getParent() recursively until you reach a null, implying that the component has no parent. I did something similar once, and I believe that's how I did it. If you mean topmost, by the window that has the focus, then you'll want to have one object keep track of the focus changes by implementing a focus listener I suppose. Hope any of this helps. Maybe there's a better way... - Tim Stewart.
Technical Details
Message-ID:
<34AAD3DD.232338F9@omeba.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<347376EB.464BD65B@oop.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,56a1f5fcc2fcd846 X-Google-Attributes: gid1089d0,public From: Timothy Stewart <tims@omeba.com> Subject: Re: Window Date: 1997/12/31 Message-ID: <34AAD3DD.232338F9@omeba.com> X-Deja-AN: 311766232 Content-Transfer-Encoding: 7bit References: <347376EB.464BD65B@oop.com> To: carl@oop.com Content-Type: text/plain; charset=us-ascii Organization: Omeba, Inc. Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api