• Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting focus (in Swing) to windows programmically

 
M Burke
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am popping up a modeless dialog box, but I want it to not take focus from the parent JFrame it was called from. I want it to sit in the background after I call show().
 
M Burke
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it

requestFocus(true);
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!