public boolean canPopupOverlapTaskBar(){
  boolean result=true;
  try {
    SecurityManager sm=System.getSecurityManager();
    if (sm != null) {
      sm.checkPermission(SecurityConstants.AWT.SET_WINDOW_ALWAYS_ON_TOP_PERMISSION);
    }
  }
 catch (  SecurityException se) {
    result=false;
  }
  return result;
}

public boolean canPopupOverlapTaskBar ( ) { boolean result = true ; try { SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { sm . checkPermission ( SecurityConstants . AWT . SET_WINDOW_ALWAYS_ON_TOP_PERMISSION ) ; } } catch ( SecurityException se ) { result = false ; } return result ; }
returns whether popup is allowed to be shown above the task bar . this is a default implementation of this method , which checks corresponding security permission .
