Hi all, I want the focus to be in a specified comp when the screen comes up.i tried using below methods..I am unable to get the focus for the desired one..how to go about?? setRequestFocusEnabled(true); requestFocus(); requestDefaultFocus() ; Thanks, silva.
hi, I found that at JGuru: "The requestFocus() method will only work when the component is visible so ensure that your window/applet is visible and that your component has been added to it. Then call the requestFocus() method on the component to switch the focus." i've seen in the API a method setInitialFocus(). Maybe that will work?! chantal