GridLayout: removeAllComponents() doesn't remove columns or rows

Hi all,

I thought when I have a gridLayout filled with some components, and on calling:

gridLayout.removeAllComponents()

the next invocations of .getRows() and .getColumns() should be 0, but this is not happening.

Any reason why?

Thanks,
Ahmed

How many rows and columns the GridLayouts has has nothing to do with how many components there are in the GridLayout.

For instance, you can easily make a 4x4 GridLayout using new GridLayout(4,4) without having any actual components in it and then getRows() and getColumns() should both return 4.

Thanks for your response, John