Search code examples
javaswingjinternalframe

How do I find the current focussed InternalFrame?


I am having multiple InternalFrames (JIF) added to a desktop manager. How do I know which one has the focus at the moment?


Solution

  • Ha..I didnt see that earlier while searching the docs, pretty simple question. JDesktopPane.getSelectedFrame()