Search code examples
javaswingcomponentsz-order

Z-order on Java Swing components


I've been looking all over for some mention of this, but I cannot find any substantial information on it. Is there a way to change the z-order of Swing components, or at least change the draw order so that they appear to be above others?


Solution

  • You are looking for setComponentZOrder

    Here's an example.