File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 15302

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
I agree. Here's the link:
subject: JInternalFrame
jQuery in Action, 3rd edition