Not with any detail.
As you say, you can call toFront () and toBack (), and you can ask the window to "stay on top", but that is pretty much it.
Another option is to have a frame with internal frames and use setComponentZOrder () (this only works for internal components, but you must call it in the container).
I believe that one of the reasons it was not a priority in Swing is that support for Z-ordering is completely platform dependent. (But hey, what not ...)
Neil coffey
source share