I have a JGoObject and am setting its height and width using setSize() method.However it sets only the width,but not the height.Also tried setting its height explicitly using setHeight() but does not seem to change its height.

Can you tell me why this behavior plz?


That depends on what kind of JGoObject it is.

Probably you are talking about setting the size of some JGoArea or JGoNode whose layoutChildren method enforces some positioning and/or sizing of its child objects such that the total height of the area happens to remain constant.

Am using JGoArea.Is there any way to change its height?

The height, and in fact the whole bounding rectangle, is computed as the union of the bounding rectangles of all of the child objects. So you need to adjust the sizes and/or positions of the children so that you get the height you want.