Originally posted by Maneesh Godbole:
Did you try JComponent#getTopLevelAncestor() ?
I should have mentioned in my original post that I did try that and it returned null. Thanks for the response.
Originally posted by Rob Prime:
JPopupMenu has a method called getInvoker(). I think you can try that, and get the top level ancestor of the return value.
That did it. Thanks Rob! I was looking through the JavaDocs to find anything that returned Containers or Components, but must have missed the getInvoker().
For any future Google finds of this
thread, here's what I ended up with:
[ September 09, 2008: Message edited by: Lance Miller ]