public void showDockable() { GuiExecutor.instance().execute(() -> { if (!dockable.isVisible()) { if (!UIManager.VIEWER_PLUGINS.contains(ViewerPlugin.this)) { UIManager.VIEWER_PLUGINS.add(ViewerPlugin.this); } dockable.add(getComponent()); dockable.setFocusComponent(ViewerPlugin.this); UIManager.MAIN_AREA.add(getDockable()); dockable.setDefaultLocation(ExtendedMode.NORMALIZED, CLocation.working(UIManager.MAIN_AREA).stack()); dockable.setVisible(true); } }); }