• Post Reply Bookmark Topic Watch Topic
  • New Topic

focus transfer

 
S Dan
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I'd like to do something like the following for my java app..
In your IE, go to tools and bring up the Internet Options menu window.
Now when that window is visible, you can't click on the IE browser that
is the parent of that internet options window (it will give you a beep
sound if you try to do so). You can focus on the parent IE browser, only
after closing the internet options window. How can I implement something similar in java? Thanks in advance.
Dan
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDialog() with modal set to true

search for 'extends JDialog' for working examples
 
James Carman
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Michael Dunn:
JDialog() with modal set to true

search for 'extends JDialog' for working examples


You must also make sure you set the parent of the JDialog if you want it to be truly modal.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!