Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Two focused window at the same time

 
William Wang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my project, I have a server running at localhost, javascript will send a request to localhost server which will open a Dialog window. The problem is I want the new Dialog window to get the focus, but what it happened is both browser (firefox) and dialog get the focus at the same time. I say that because both window's title bar is in clear blue. If I click the Dialog, then firefox lose focus, i.e. the title bar becomes gray. Is there a way to ask other windows on the platform to lose focus?

After experimenting more, looks like the problem is that dialog didn't get focus at all, but I used setAlwaysOnTop(), so it appeared to be focused.

Thanks for any suggestions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic