The usual way to modify an existing native window, frame, or dialog box for its contents is pack . See an example here . If you need access to, for example, a shot from a lung of a child, you can get it using
JFrame topFrame = (JFrame) SwingUtilities.getWindowAncestor(this);
source share