/** Initializes the UI components. */ private void initComponents() { container = new JPanel(); previewPanel.addPropertyChangeListener(this); imagePane = EditorUtil.createTaskPane("OMERO.editor"); // imagePane.setCollapsed(false); imagePane.add(previewPanel); imagePane.addPropertyChangeListener(UIUtilities.COLLAPSED_PROPERTY_JXTASKPANE, this); }