Article View: aus.computers.java
Article #925AWT Text fields
From: Trembath
Date: Sun, 19 Mar 2000 00:00
Date: Sun, 19 Mar 2000 00:00
16 lines
1082 bytes
1082 bytes
When switching focus to a text field, be it by the user, or the program, how do you make it select all the text? ie. like when you click on the address bar in netscape, by default all the text is selected, so you can just start typing and it will replace everything that is there. I've got a little applet where im constantly tab'ing back over fields to replace their contents, and i have to delete the values manualy each time...quite frustrating after a while. Any ideas? TIA -Daniel
Technical Details
Message-ID:
<danielt-60C06E.15005919032000@news.mel.ihug.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,fcce5afc08d9224c,start X-Google-Attributes: gid10d6db,public From: Trembath <danielt@ihug.com.au> Subject: AWT Text fields Date: 2000/03/19 Message-ID: <danielt-60C06E.15005919032000@news.mel.ihug.com.au> X-Deja-AN: 599404881 Cache-Post-Path: mel.ihug.com.au!unknown@p290-tnt1.mel.ihug.com.au Organization: 314 Technologies X-Server-Date: 19 Mar 2000 04:00:37 GMT X-Cache: nntpcache 2.3.3b4 (see http://www.nntpcache.org/) User-Agent: MT-NewsWatcher/3.0 (PPC) Newsgroups: aus.computers.java