This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JInternalFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JInternalFrame" Watch "JInternalFrame" New topic


kumar mars
Ranch Hand

Joined: Jun 04, 2001
Posts: 34
i am facing a peculiar problem
i am working on a application that needs Inernal frames
i have a desktop pane and i am adding the internal frames to it after creation
but the one newly created is appearing beside the existing ones the previous one is staying on top
i tried with moveToTop also but no effect
some one find the sollution

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299

Try the toFront() method. Usually works, although I have found that it is picky in the way that you create your internal frame when using the method.
If it doesn't work, let me see how you are creating your internal frames and I will help you.

Happy Coding,
Gregg Bolinger

GenRocket - Experts at Building Test Data
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: JInternalFrame