rtf.read(fi, editor.getDocument(), 0);
} catch (Exception exception) {
exception.printStackTrace();
}
} else if (verifier.isPicture(path)) {
AlphalinePanel viewer = new AlphalinePanel();
viewer.setFile(file);
dialog.add(viewer);
} else if (verifier.isPDF(path)) {
SwingController controller = new SwingController();
SwingViewBuilder factory = new SwingViewBuilder(controller);
JPanel viewerComponentPanel = factory.buildViewerPanel();