[JAVAGUI] issue #49 - new implementation to check if a popup has the focus or not