This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

child panel

 
Jim Frank
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I force a child panel back to the foreground. It is a child of a parent JFrame. A modal is called for an user action, and since the Parent is used as a parameter, the parent is called to the foreground. I want the child to remain in the foreground.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should make the modal dialog a child of the panel you want in front. And by panel, I assume from your description this in in a seperate JFrame. You can also call toFront() to move a window to the front.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic