Layout constraints in GUI designer
Hello,
I have a panel using GridLayoutManager. It has two rows. On the second row, I wish to have a JLabel which spans 2 columns. GridLayoutManager allows specifying a constraint called "colSpan" that makes this possible. However, I do not see a way to set this value in the GUI builder. Is it possible?
Right now, I name the panel, get the layout, get the component constraints, and set the colSpan value to 2 in the code. This works but to me this is not how a GUI designer should require me to operate. And because of this, the designer also shows it wrong.
Teemu
Please sign in to leave a comment.
Hello.
Please, try to enlarge the spanning component via drag-n-dropping of its border. It works for me and generates required constant.
Regards,
Alexander.