Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting focus (in Swing) to windows programmically  RSS feed

 
M Burke
Ranch Hand
Posts: 410
  • 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: 410
  • 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!