|
Re: Problem with initial focus for Applet
|
Posted: Jul 11, 2005 12:19 AM
|
|
You are right, I would toy around with setFocusTraversalPolicy(policy)
Fortunately all the Applets I've toyed with by default Focus is started at the first JComponent and is passed on sequentially.
There definitely is a way to set default focus as you suggested (I would probably toy around with the API suggestions of the method setFocusTraversalPolicy(policy)) I'm sure if you had to Google setFocusTraversalPolicy Example, you'd find some example code.
|
|