Article View: borland.public.jbuilder.java.swing
Article #12946HELP - How to set the focus to a component in Swing
From: Eric Kerbel
Date: Sun, 11 Oct 1998 00:00
Date: Sun, 11 Oct 1998 00:00
17 lines
1106 bytes
1106 bytes
Hi Could someone please help me out... I am trying to set the focus on a specific component within a frame, i.e. to display the cursor within one specific JTextArea within a frame. I have tried to use requestFocus(), but it doesn't work for me. I cannot get the cursor to wait within that specific text area. Instead it remains within the first text area within the main frame. Please can someone tell me how to overcome this problem. Any help would be greatly appreciated. Many thanks Uri --
Technical Details
Message-ID:
<3620b035.15407186@news.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,f975cf2c6ef0ba61,start X-Google-Attributes: gid111d45,public From: eric@kalbi.demon.co.uk (Eric Kerbel) Subject: HELP - How to set the focus to a component in Swing Date: 1998/10/11 Message-ID: <3620b035.15407186@news.demon.co.uk> X-Deja-AN: 399924807 X-NNTP-Posting-Host: kalbi.demon.co.uk:158.152.128.133 X-Trace: news.demon.co.uk 908112082 nnrp-08:26301 NO-IDENT kalbi.demon.co.uk:158.152.128.133 Reply-To: eric@kalbi.demon.co.uk Newsgroups: borland.public.jbuilder.java.swing X-Complaints-To: abuse@demon.net