File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Applet dialog not getting focus when coming back to screen using Alt-Tab Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet dialog not getting focus when coming back to screen using Alt-Tab" Watch "Applet dialog not getting focus when coming back to screen using Alt-Tab" New topic
Author

Applet dialog not getting focus when coming back to screen using Alt-Tab

Pushker Chaubey
Ranch Hand

Joined: Dec 06, 2006
Posts: 53
Hi,

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.

Please suggest me a solution. Thanks.


Regards,<br />Pushker<br /> <br />SCBCD 5.0 90%<br />SCWCD 5.0 89%<br />SCJP 5.0 90%
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
The best suggestion I can give would be to not use applets for this purpose. JavaScript can open dialogs if you need them, and the browser knows better how to handle them properly (in contrast to applet windows).

Also the other purpose you mention -site navigation- can be handled by JavaScript/CSS very well these days, so an applet might not be necessary.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet dialog not getting focus when coming back to screen using Alt-Tab
 
Similar Threads
Problem when multiple dialogs popped up at the same time?
Problem reactivating JDialogs
Annoying quirk with JDialog on Windows 7
Forcibly closing all open dialogs on an Applet
location.href while using modal window