/** Open the file passed as parameter... */ public boolean openFile(String file) { setVisible(true); try { JReportFrame jrf = MainFrame.getMainInstance().openFile(file); jrf.setSelected(true); return true; } catch (Exception ex) { return false; } }