Tabs

Hi ive looked at the tabs demo here and i cant get it to work.Is there any other way to setup tabs, ive already started coding the program im making.thanks
[176 byte] By [rossma] at [2007-11-26 19:55:44]
# 1
'\t'? http://java.sun.com/docs/books/tutorial/uiswing/components/tabbedpane.html ?And what does "can't get it to work" mean?
CeciNEstPasUnProgrammeura at 2007-7-9 22:49:06 > top of Java-index,Java Essentials,New To Java...
# 2
ive looked at that, tried to implement it into my program but failed.Ive taken the code i need from the demo and tried to put it with my program. All that happens is every button on GUI turns into vertical strips covering the whole program.any ideas why? or what im doing
rossma at 2007-7-9 22:49:06 > top of Java-index,Java Essentials,New To Java...
# 3
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.
lozengera at 2007-7-9 22:49:06 > top of Java-index,Java Essentials,New To Java...
# 4

> 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.

masijade.a at 2007-7-9 22:49:06 > top of Java-index,Java Essentials,New To Java...