Nov 08

The SwingUtilities class contains a number of methods for querying the component hierarcharchy. To find the Window that contains a Component use getWindowAncestor().

Window window = 
   SwingUtilities.getWindowAncestor(component);

written by objects \\ tags: , , ,


Leave a Reply

You must be logged in to post a comment.