SwingFileDialog extends SwingElement implements XulFileDialog { public RETURN_CODE showOpenDialog() { fc = new JFileChooser(); return showOpen(); } SwingFileDialog( Element self, XulComponent parent, XulDomContainer domContainer, String tagName ); File getFile(); File[] getFiles(); SEL_TYPE getSelectionMode(); VIEW_TYPE getViewType(); void setSelectionMode( SEL_TYPE type ); void setViewType( VIEW_TYPE type ); RETURN_CODE showOpenDialog(); RETURN_CODE showOpenDialog( Object f ); RETURN_CODE showSaveDialog(); RETURN_CODE showSaveDialog( Object f ); void setModalParent( Object parent );  }
@Test public void showFileOpenTest2() throws Exception { Thread msgThread = new Thread( () -> dialog.showOpenDialog( new File( "../" ) ) ); validateDialog( msgThread ); }