🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Focus in a JTextField

#12041
From: Rodolfo Botto
Date: Thu, 25 Feb 1999 00:00
27 lines
1410 bytes
This must be done in a moment where my_textfield is visible.
One way to achieve this is capturing WindowActivated Event and there you

do
    my_textfield.requestFocus();
Anne JANSSENS wrote:

> You can ask your JTextField to ask for the focus, you can try :
> my_textfield.requestFocus();
>
> It should give the focus to the textfield !
>
> Hope that hint could help, :) Anne

--

Saludos.
Rodolfo Botto.


===========================================================
Rodolfo Botto                       IdeaSoft
Gabriel Pereira 2941 - CP 11300     icq# 18349112
Montevideo - Uruguay                Tel  : +5982 - 709 2590
http://www.isoft.com.uy             Fax  : +5982 - 709 2805
===========================================================
Technical Details
Message-ID: <36D5D588.4329C22C@isoft.com.uy>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36D57C2E.38C090E7@cs.virginia.edu> <7b3v3t$eec4@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,580d5fe6de2f148f
X-Google-Attributes: gid111d45,public
From: Rodolfo Botto <rbotto@isoft.com.uy>
Subject: Re: Focus in a JTextField
Date: 1999/02/25
Message-ID: <36D5D588.4329C22C@isoft.com.uy>
X-Deja-AN: 448501724
Content-Transfer-Encoding: 7bit
References: <36D57C2E.38C090E7@cs.virginia.edu> <7b3v3t$eec4@forums.borland.com>
To: Anne JANSSENS <recherche@generix.fr>, Leo Cohen <lcohen@cs.virginia.edu>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: IdeaSoft
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing