Java - AWT/Swing

determine JFrame of a component


Component frame = SwingUtilities.getRoot(myComponent);