posted 23 years ago
The important thing to note here is that though you are using west,east,north,south and center in the add commands you are adding the same button(okbutton). So, only the last add command stands valid. Since the center positioning of any component makes it to take the whole space if all other positions, are vacant, you get a button than spans the whole container.(applet)
On the other hand, try adding atleast one different button.(say, okbutton1) then you will see two or more components. If you add five different buttons then you will see the expected output.
HTH.
------------------
Regards,
Shree