Article View: borland.public.jbuilder.java.swing
Article #10212Re: Getting focus in a JTextField
From: Paul Furbacher [TeamB]
Date: Wed, 27 Oct 1999 00:00
Date: Wed, 27 Oct 1999 00:00
11 lines
1045 bytes
1045 bytes
Leo Cohen wrote: > ... I've tried putting jTextField.requestFocus() before > and after the jTextField.setVisible(true), but to no avail. Actually, a more straightforward answer than that in my previous message would be to simply try issuing a "dialog.pack()" prior to attempting to set focus. That's what JOptionPane does to realize the dialog before it calls selectInitialValue(). Paul Furbacher (TeamB)
Technical Details
Message-ID:
<38174216.B0E47FAA@bilbo.bio.purdue.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38161920.4814F842@cs.virginia.edu> <38173F6D.5BCBD6AB@bilbo.bio.purdue.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,35281d36553f78f1 X-Google-Attributes: gid111d45,public From: "Paul Furbacher [TeamB]" <pf@bilbo.bio.purdue.edu> Subject: Re: Getting focus in a JTextField Date: 1999/10/27 Message-ID: <38174216.B0E47FAA@bilbo.bio.purdue.edu> X-Deja-AN: 541298341 Content-Transfer-Encoding: 7bit References: <38161920.4814F842@cs.virginia.edu> <38173F6D.5BCBD6AB@bilbo.bio.purdue.edu> Content-Type: text/plain; charset=us-ascii Organization: Reverse Alchemy, Inc. Mime-Version: 1.0 Reply-To: pf@bilbo.bio.purdue.edu Newsgroups: borland.public.jbuilder.java.swing