Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Window z-ordering in java

Is there a way to manage the window z-ordering of JDialog windows within java?

I would like to able to assign each window to a layer such that windows on lower layers can never go above and obscure windows on higher layers. Even when they have focus. Similar to the Z-order capability that exists for components but for JDialog windows.

The solution does not need to work across all OSes. A linux specific solution is acceptable.

like image 937
Aaron Avatar asked Jun 14 '09 22:06

Aaron


1 Answers

The only management I have been able to find for the Z order of windows has been that you can send them to the top of the order with toFront() or that you can set them as always on top with setAlwaysOnTop(). This is very basic z ordering, it doesn't seem that the Window class gives you as much fine grain ordering as Components inside Containers do.

like image 127
Brandon Bodnar Avatar answered Oct 20 '22 00:10

Brandon Bodnar