File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Tanveer Rameez
Ranch Hand
Posts: 158
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Already answered in this post.

-Nate
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic