|
-
August 20th, 1999, 12:20 AM
#1
Problem with focus on a particular component
Hello all,
I am using Swings in JDK1.2.
I want to set focus by default on a JTextField(in a JPanel) when I open
the dialogbox(JDialog). Here is the code I am using for same.
textf1.setRequestFocusEnabled(true);
textf1.requestFocus();
But this doesnt set the focus.
pls help
thanks in advance.
manav
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|