Hello,
I just discovered this great framework so I’m still getting accustomed to using it. Before I get to my issue, first let me say that what I have used so far is just awesome! Great, great work. Thank you so much for sharing this with the world :).
So, I am using 1.0.8-preview2
The functionality to automatically stack dockables when adding to a CGrid (as documented in the Common 1.0.7 documentation, p.16) does not seem to work.
I am calling
DefaultSingleCDockable dock1 = create(...);
DefaultSingleCDockable dock2 = create(...);
CGrid grid = new CGrid(control);
grid.add(0, 0, 1, 1, dock1, dock2);
When I run it, I get the following exception
Exception in thread “AWT-EventQueue-0”
bibliothek.gui.dock.station.split.SplitDropTreeException: DockAcceptance does not allow to combine
bibliothek.gui.dock.common.intern.DefaultCommonDockable@15fadcf and
bibliothek.gui.dock.common.intern.DefaultCommonDockable@fbb7cbat bibliothek.gui.dock.station.split.SplitNode.create(SplitNode.java:478)
at bibliothek.gui.dock.station.split.Node.evolve(Node.java:392)
at bibliothek.gui.dock.station.split.SplitNode.create(SplitNode.java:530)
at bibliothek.gui.dock.station.split.Node.evolve(Node.java:386)
at bibliothek.gui.dock.station.split.SplitNode.create(SplitNode.java:530)
at bibliothek.gui.dock.station.split.Root.evolve(Root.java:162)
at bibliothek.gui.dock.SplitDockStation.dropTree(SplitDockStation.java:1549)
at bibliothek.gui.dock.SplitDockStation.dropTree(SplitDockStation.java:1518)
at bibliothek.gui.dock.common.CContentArea.deploy(CContentArea.java:198
I did manage to get around it by calling
DefaultSingleCDockable dock1 = create(...);
DefaultSingleCDockable dock2 = create(...);
CGrid grid = new CGrid(control);
grid.add(0, 0, 1, 1, dock1);
control.add(dock2);
dock2.setLocation(dock1.getBaseLocation());
dock2.setVisible(true);
but I’d rather do it the clean way while setting up CGrid. Am I doing something wrong?