private void initWindowIcon(){
  if (OSUtils.isMacOSX()) {
    return;
  }
  for (  Window w : getWindows()) {
    if (w.getParent() == null && w instanceof LimeJFrame) {
      List<Image> iconImages=w.getIconImages();
      if (iconImages.size() > 0) {
        Image image=iconImages.get(0);
        setIconImage(image);
        return;
      }
    }
  }
}

private void initWindowIcon ( ) { if ( OSUtils . isMacOSX ( ) ) { return ; } for ( Window w : getWindows ( ) ) { if ( w . getParent ( ) == null && w instanceof LimeJFrame ) { List < Image > iconImages = w . getIconImages ( ) ; if ( iconImages . size ( ) > 0 ) { Image image = iconImages . get ( 0 ) ; setIconImage ( image ) ; return ; } } } }
gets the application icon from the main window and puts it on the player window .
