Creating detached windows

You could pass it, but draw() doesn’t work in a JFrame. Would need to draw into a JPanel.