Java Swing - how to show a panel on top of another panel?
I wish to have an internal (non window) dialog to ask for member input. I would like the dialog to be placed centrally on an existing JPanel. I have looked at layeredpanes and these seem unusable due to only having a single layout manager (or no layout manager) across all the panes. I guess I could try to override JLayeredPane and provide a custom layout but this seems extreme. Glass panes don't seem to be appropriate either. How can this be done? Is there no usable concept of z-indexes in Swing? EDIT The reason Layered Panes weren't appropriate was due to the lack of a layout manager per