Hi!
I have created a dockable of which I would like to show the minimize, maximize and externalize-actions, but they do not show up. I have tried to use the respective “setters” (setMaximize(true), etc.), but no effect. Then I have tried to put the predefined actions (CMinimizeAction, CMaximizeAction, CExternalizeAction) by calling dockable.putAction() but again no effect.
What am I missing??
DefaultSingleCDockable dockable = new DefaultSingleCDockable(title, title, comp);
CMinimizeAction minimizeAction = new CMinimizeAction(control);
minimizeAction.setIcon(JUtil.getIcon("dockable_minimize.png"));
dockable.putAction(CDockable.ACTION_KEY_MINIMIZE, minimizeAction);
CMaximizeAction maximizeAction = new CMaximizeAction(control);
maximizeAction.setIcon(JUtil.getIcon("dockable_maximize.png"));
dockable.putAction(CDockable.ACTION_KEY_MAXIMIZE, maximizeAction);
CExternalizeAction externalizeAction = new CExternalizeAction(control);
externalizeAction.setIcon(JUtil.getIcon("dockable_externalize.png"));
dockable.putAction(CDockable.ACTION_KEY_EXTERNALIZE, externalizeAction);
dockable.setMaximizable(true);
dockable.setMinimizable(true);
dockable.setExternalizable(true);
return dockable;
}```
Besides: Is this the correct way to replace the action icons?
Thanks for you help!
Best regards,
grml