aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How do I make an JInternalFrame stay always on top inside  a JFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How do I make an JInternalFrame stay always on top inside  a JFrame" Watch "How do I make an JInternalFrame stay always on top inside  a JFrame" New topic
Author

How do I make an JInternalFrame stay always on top inside a JFrame

Tanveer Rameez
Ranch Hand

Joined: Dec 11, 2000
Posts: 158
hi
I am creating an image proceesing application.
(check it out at http://tanveer.0catch.com/programming/JPhotoBrush.htm )
I have several JInternal Frames inside the main frame. All but one internal frames will contain images and one JInternalFrame will contain the histogram of the currently selected JInternalFrame containing the image. I want this histogram internal frame to be always on top.
This may sound confusing. Let me explain: I have internal frames a,b,c,d all containing images. on clicking on any of these internal frames, it becomes selected (This I have done). Now in addition to that, I want another internal frame say X to be always on top. So it looks as if there are two selected internal frames (one may be any one of a,b,c,d) and thge other X. But I think a single desktop cannot have two selected internal frames. How do I make it possible.
can anybody help me? Someone told me that I can add another layer of JLayeredPane. But how exactly I do that.
I am using a cde such as:

can anyone explain with an example code?
Regards
Tanveer


Author of JPhotoBrush Pro (www.jphotobrushpro.com)
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Already answered in this post.

-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How do I make an JInternalFrame stay always on top inside a JFrame