This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes child panel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "child panel" Watch "child panel" New topic

child panel

Jim Frank

Joined: Mar 13, 2004
Posts: 27
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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286

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.

GenRocket - A Test Data Generation Platform
I agree. Here's the link:
subject: child panel
Similar Threads
panels and background
Static and Inheritance - strange java...why is this happening ?
Need to dynamically add checkBoxes in a GUI
question about polymorphism
What is parent and child Class?