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 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I make an JInternalFrame stay always on top inside a JFrame
 
Similar Threads
Cool Image processing application that can match other commercial applicaitons
Internal Frames Problems...need help
JFrame into another JFrame
making things not dragable
Always in Front