swing - unable to resize components in java windowbuilder -
i'm designing gui using java swing of windowbuilder. found in layout it's not possible resize components using mouse drags (even though shows points pick , drag resize). reducing size important do.
resizing allowed in 2 layouts: 1 in absolute layout (which not @ practical purpose, considering different screen-sizes gui should better displayed) , group layout (which not design due it's complex code).
following sample have placed 2 jlabels , trying add jcombobox @ location indicated green box.

but when place jcombobox it's default size fill horizontally. if change fill 'none' , try resize, i'm unable resize it. following result after addition of jcombobox:

in background there jpanel gridbaglayout following properties:

i found changing values in columnwidths , rowheights properties of gridbaglayout, size of grid columns/rows can controlled. i'm unable understand size of columns/rows values represents?. (i found no direct relation between number of values , number of columns/rows displayed on panel)
is there way out resize components? , can explain values in columnwidths , rowheights properties of gridbaglayout represent?
it's simple, need add grow in windowbuilder. looks this:
click on right mouse button , click on 'grow':
only objects 'grow' resizable.
Comments
Post a Comment