Retrieve Selected Internal Frame?
Hi all!
I have a problem.....
i've got a desktop for an MDI app defined as:
JDesktopPane desktop
Now, I need a static method to get the selected internal frame so it's accessable from elsewhere.
I tried:
publicstatic MyIFrame getMySelectedFrame()
{
return (MyIFrame)desktop.getSelectedFrame();
}
but it tells me I can't access desktop in a static method. What am I missing to manage this?
Thanks!
Tom

