This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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.
 
Don't get me started about those stupid light bulbs.
 
subject: How do I make an JInternalFrame stay always on top inside a JFrame