private SmartFileView constructFileChooserView(){
  JFileChooser chooser=null;
  for (int i=0; i < 10; i++) {
    try {
      chooser=new JFileChooser(){
{
          FileChooserUI ui=(FileChooserUI)ResourceManager.getNativeUI(this);
          setUI(ui);
          setFileView(ui.getFileView(this));
        }
      }
;
    }
 catch (    NullPointerException ignored) {
    }
catch (    ArrayIndexOutOfBoundsException ignored) {
    }
    if (chooser != null)     break;
  }
  if (chooser == null) {
    return null;
  }
 else {
    return new SmartChooserView(chooser.getFileView());
  }
}

private SmartFileView constructFileChooserView ( ) { JFileChooser chooser = null ; for ( int i = 0 ; i < 10 ; i ++ ) { try { chooser = new JFileChooser ( ) { { FileChooserUI ui = ( FileChooserUI ) ResourceManager . getNativeUI ( this ) ; setUI ( ui ) ; setFileView ( ui . getFileView ( this ) ) ; } } ; } catch ( NullPointerException ignored ) { } catch ( ArrayIndexOutOfBoundsException ignored ) { } if ( chooser != null ) break ; } if ( chooser == null ) { return null ; } else { return new SmartChooserView ( chooser . getFileView ( ) ) ; } }
constructs a jfilechooser - based fileview . this doesn ' t work consistently on java 1 . 5 . 0_10 on windows , because it deadlocks if called outside of the swing thread .
