Question

I'm using MigLayout and absolute positioning to overlay a busy indicator on a panel. Sometimes the indicator appears behind the panel, sometimes in front. Is there any way to specify the z-order to ensure that the indicator always appears in front?

I saw in a post that "z-order is not up to the layout manager". If this is the case, who is it up to and can it be controlled?

Was it helpful?

Solution

you can call container.setComponentZOrder(component, int) however there are some extra rules regarding heavy vs light components.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top