• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
Posts: 43016
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Forget Steve. Look at this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic