Article View: borland.public.jbuilder.java.swing
Article #9543Re: how to control focus ?
From: Nils-Erik Thorell
Date: Mon, 13 Mar 2000 00:00
Date: Mon, 13 Mar 2000 00:00
22 lines
1146 bytes
1146 bytes
Do you happen to know how to still keep the Ok-button sensitive to the 'Enter'-key, while editing a textfield? That is standard Windows behaviour, but seems to be hard to achieve in Java. Nils Thorell Shaomei Ruan wrote: > jTextField1.requestFocus(); > > Petr Kozelka wrote: > > > > Hello, > > > > I am quite new to building GUI in JAVA so I have just a stupid, very basic > > question: > > How can I programmatically set focus to a specific control, for example > > JTextField, inside a JDialog ? > > > > Thanks.
Technical Details
Message-ID:
<38CCD0E8.279470DF@es.sigma.se>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8a88dp$f6f1@bornews.borland.com> <38C847A7.988CF795@home.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,2109ba7cebc5f96e X-Google-Attributes: gid111d45,public From: Nils-Erik Thorell <net@es.sigma.se> Subject: Re: how to control focus ? Date: 2000/03/13 Message-ID: <38CCD0E8.279470DF@es.sigma.se> X-Deja-AN: 596805000 Content-Transfer-Encoding: 7bit References: <8a88dp$f6f1@bornews.borland.com> <38C847A7.988CF795@home.com> To: sruan@home.com X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing