I have a web site which contains applet menu. For displaying alerts and confirmation dialogs, I call methods in applet (swing dialogs) from my javacript. The problem is - whenever the aplication is showing sucj a swing dialog and I switch to some other browser windows using Alt-Tab and when I try to come back to this window using Alt-Tab, it does not show the swing dialog on the top of window. Moreover it does not allow me to do any click on window since a modal dialog is already open for that window. So it gives an impression like the window has got hanged. But the reason being that modal dialog is some where else and is not showing on the top of window and that dialog is not automatically coming on the top of window when i come back to this window using Alt-Tab.