ContentPanel contentPanel = new ContentPanel();
EventDispatchService service = EventDispatchService.getInstance();
service.subscribe(OpenFileEvent.class, treePanel);
service.subscribe(OpenHistoryFileEvent.class, treePanel);
service.subscribe(OpenHistoryFileEvent.class, contentPanel);
service.subscribe(OpenFileEvent.class, contentPanel);
service.subscribe(ShowImageEvent.class, contentPanel);
service.subscribe(ShowTextEvent.class, contentPanel);
JScrollPane treeScrollPane = new JScrollPane(treePanel);
JScrollPane contentScrollPane = new JScrollPane(contentPanel);
Dimension minimumSize = new Dimension(0, 0);