> The reason it turns into strips is because you are
> using a grid layout, if you use a null layout this
> will allow you to place your components anywhere you
> want. look at MyTabsDemo.
I'm sorry to say, a null layout is, normally, a very bad idea.
If all you want is a line of buttons, use the FlowLayout.
You need to look at what the different layouts actually do, and then pick the one (or a combination of them on layered JPanels) that best fits your needs.
But, as I said, a null Layout is normally a very bad idea.