If you don't mind using Swing, you could try using a JLayeredPane:
http://java.sun.com/docs/books/tutorial/uiswing/components/layeredpane.html A layered pane is a Swing container that provides a third dimension for positioning components: depth, also known as Z order. When adding a component to a layered pane, you specify its depth as an integer. The higher the number, the higher the depth. If components overlap, components at a higher depth are drawn on top of components at a lower depth. The relationship between components at the same depth is determined by their positions within the depth. -David On Thu, 3 Oct 2002, Ralph Mazza wrote: > I'm developing an application with dragable components: subclassed of > the Canvas class. I've descovered that the Frame, a Container subclass, > stores the components, when it comes to the display of the components, > on what amounts to an effective Z-axis. When one drags the components > one descovers that, despite the fact that a component has focus, there > is a z-axis order of the components and the overlap is determined by > place in the sequence loading (.add) of the componenet into the > container Frame. My objective is to bring forward the selected, > focused, component. > Any discussion, comment or information on controling container behavior, > or other information or direction would be greatly appreciated. > Thanks, > Ralph Mazza ------------------------+--------------------------+ David Eisner | E-mail: [EMAIL PROTECTED] | CALCE EPSC | Phone: 301-405-5341 | University of Maryland | Fax: 301-314-9269 | ------------------------+--------------------------+ =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
