Skip to main content

Blog Archive for wzberger during January 2009

Generally in Swing you can specify the paint order by applying component Z-Order (see Container#setComponentZOrder). This method is useful as long as you're using a null layout or a layout manager which makes use of constraints. The disadvantage of using #setComponentZOrder is that it can affect component position. The image below demonstrates the output of a simple test case with Line-Axis...