Meet Gaurav wrote:Hi
Thanks for all your replies. I just created another JFrame and by clicking the button on the JApplet I moved the control over to JFrame. Please assist me how can I return back to JApplet
Wouldn't you rather use a JDialog here instead of a JFrame as what you are describing sounds like (modal?) dialog behavior. The focus will automatically go back to the applet once the dialog is closed, I believe.