Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / April 2004

Tip: Looking for answers? Try searching our database.

JTextField & Focus

Thread view: 
Lars Neidhold - 08 Apr 2004 09:25 GMT
Hi NG,
i know that there many posts in here covering that topic, but i read
most of them and none helped me.

I have a JFrame with a JTextPane (not editable) and a JTextField
(editable). The JTextField has an ActionListener which puts all entered
Text in the JTextPane. Now I added a WindowListener to the JFrame and
set up the Window.opened() with: "tf.requestFocus();" where "tf" is my
JTextField.
Now my problem is, that the JTextField never gets the focus, when i
start my application.

Any help would be appreceated,
Lars
nacho3 - 08 Apr 2004 10:03 GMT
> Hi NG,
> i know that there many posts in here covering that topic, but i read
[quoted text clipped - 10 lines]
> Any help would be appreceated,
> Lars

Hi, sorry my english, i'm spanish. Why don't you try to put in the last line
of jInit ()     tf.requestFocus ();
Saludos.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.