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.

enter image description here

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:

enter image description here

in background there jpanel gridbaglayout following properties:

enter image description here

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:

picture

click on right mouse button , click on 'grow':

picture

only objects 'grow' resizable.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -