Article View: borland.public.jbuilder.java.swing
Article #11990Re: JInternalFrame: how to focus?
From: kerbel
Date: Thu, 04 Mar 1999 00:00
Date: Thu, 04 Mar 1999 00:00
27 lines
1329 bytes
1329 bytes
You must use the following code:
try {
myInternalFrameB.setSelected(true);
} catch (java.beans.PropertyVetoException e2) {
// do nothing
}
Where myInternalFrameB is the variable representing the second
internal frame. This will set the focus to the second internal frame!
Uri Kerbel
--
uri@kalbi.demon.co.uk
www.kalbi.demon.co.uk
(On Wed, 03 Mar 1999 14:54:00 -0600, Carlos Javier Castro Pena
<jcaspen@ittc.ukans.edu> wrote:
>If I open a JInternalFrame B, from another JInternalFrame A, the focus
>remains in the 'parent' (A). For example, if the ENTER button is
>pressed, the Button from A is activated and not the button of B.
>
>How should I give focus after invocation to B?
>
--
Technical Details
Message-ID:
<36de3ece.581554@news.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36DDA167.E7A311D2@ittc.ukans.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,7ecc8aa5a19610c9 X-Google-Attributes: gid111d45,public From: kerbel@kalbi.demon.co.uk Subject: Re: JInternalFrame: how to focus? Date: 1999/03/04 Message-ID: <36de3ece.581554@news.demon.co.uk> X-Deja-AN: 451079438 X-NNTP-Posting-Host: kalbi.demon.co.uk:158.152.128.133 References: <36DDA167.E7A311D2@ittc.ukans.edu> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 920535017 nnrp-09:7002 NO-IDENT kalbi.demon.co.uk:158.152.128.133 Reply-To: kerbel@kalbi.demon.co.uk Newsgroups: borland.public.jbuilder.java.swing