posted 24 years ago
i was pretty apprehensive before compiling this code but no it is the obvious... answer e.
i think the confusion is regarding the panel in the gridlayout(1,3)
well the fact that if both the rows and the columns are specified, only the rows are respected.wring (1, 3) is as good as writing (1, 5) or (1, 6) since the layout depends only on the no. of components and the rows specified.
so that is what happens... (1, 3) with only one component(panel) means that there is only one row and the component occupies the whole of it. what happens inside the panel is its story.
i suggest you replace (1, 3) with the following and then compile and see the results...
a) (2,0) - # of rows respected hard and fast
b) (0,2) - # of columns hard and fast
i am getting satisfactory o/p... od tell me about yours