Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 MigLayout 和绝对定位来覆盖面板上的繁忙指示器。有时指示器出现在面板后面,有时在前面。有没有什么办法可以指定z-order来保证指标总是出现在前面?
我在一篇文章中看到“z-order 不取决于布局管理器”。如果是这样,这取决于谁,可以控制吗?
你可以打电话container.setComponentZOrder(component, int),但是有一些关于重型和轻型组件的额外规则。
container.setComponentZOrder(component, int)