How can i do layout for a working area using CGrid?
Following code produce this exception:
Exception in thread "main" bibliothek.gui.dock.station.split.SplitDropTreeException: DockAcceptance does not allow to combine bibliothek.gui.dock.common.intern.DefaultCommonDockable@27e353 and bibliothek.gui.dock.common.intern.DefaultCommonDockable@bd928a
at bibliothek.gui.dock.station.split.SplitNode.create(Unknown Source)
at bibliothek.gui.dock.station.split.Root.evolve(Unknown Source)
at bibliothek.gui.dock.SplitDockStation.dropTree(Unknown Source)
at bibliothek.gui.dock.SplitDockStation.dropTree(Unknown Source)
at bibliothek.gui.dock.common.CWorkingArea.deploy(Unknown Source)
JFrame frame = new JFrame("Demo");
CControl control = new CControl(frame);
frame.setLayout(new BorderLayout());
frame.add(control.getContentArea(), BorderLayout.CENTER);
CWorkingArea workingArea = control.createWorkingArea("working area");
SingleCDockable dockable1 = createDockable("InWorkingArea", Color.GREEN);
SingleCDockable dockable2 = createDockable("InWorkingArea2", Color.GREEN);
CGrid grid = new CGrid();
grid.add(0, 0, 1, 1, workingArea);
control.getContentArea().deploy(grid);
CGrid grid2 = new CGrid();
grid2.add(0, 0, 1, 1, dockable1, dockable2);
workingArea.deploy(grid2);
frame.setVisible(true);
Thanks in advance!