panel.add(factory.createDefaultEditor(filename).getJComponent());
panel.add(factory.createViewer(new ProgressViewerCreator(), limit).getJComponent());
ImageViewerCreator creator = new ImageViewerCreator();
ImageViewer viewer = (ImageViewer) factory.createViewer(creator, filename);
viewer.setAutoFit(true);
panel.add(viewer.getJComponent());
panel.add(factory.createDefaultEditor(limit).getJComponent());
panel.add(factory.createDefaultEditor(panel.getModel()).getJComponent());