Forum Stats

  • 3,853,732 Users
  • 2,264,259 Discussions
  • 7,905,436 Comments

Discussions

Applet Focus Problem

843807
843807 Member Posts: 46,582
edited Oct 1, 2002 7:09AM in Java Applet Development
Hi,

I am facing a strange problem. I am having a applet in IE. This applet has a couple of internal frames. The problem is that when I display a Error Dialog through JOptionPane.showMessageDialog() and click on the OK button the focus goes to the IE window instead of being in the applet. So to bring the focus back to the applet I have to click once inside the applet area or type the TAB key.

How do I make sure that the applet keeps the focus to itself.

Thanks in advance,
Ganesh

Comments

This discussion has been closed.