Hello everybody, i have been using GroupLayout and I encountered a little problem that i could not solve. I would like to see if any of you are able to give me a hand with this.
I try to add two components to a container (one over the other in Y AXE) , using the following code
layout.setHorizontalGroup(layout.createSequentialG roup()
.add(layout.createParallelGroup((GroupLayout.LEADI NG)))
.add(tbToolPanel)
.add(canvas.getGeneralPanel())
);
layout.setVerticalGroup(layout.createSequentialGro up()
.add(tbToolPanel)
.add(canvas.getGeneralPanel())
);
The problem is that it just add the canvas.getGeneralPanel() component, the other does not appear, unless i comment the .add(canvas.getGeneralPanel()) lines.
Do you have any idea of why this happens?
Any suggestion would be helpfull.
Thanks!
