need a awt tab class java 1.1

Hi,
I am looking for tab class control that I could use in my applet.

The tab control should have the basics:
such as the ability to add grids or form controls onto each tab pane.

But I also want to be able to hide and show  or disable or enable certain tabs through code.

any help would be great.

vbguyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

shaveriCommented:
try the foll.code

import javax.swing.*;
import java.awt.*;
import java.applet.Applet;
/*<applet code=TabbedPanel.class width=300 height=300> </applet>*/
public class TabbedPanel extends Applet{
      public void init(){
            JFrame f=new JFrame();
            f.getContentPane().add(new Tab());
            f.setVisible(true);
            f.pack();
           
      }
}
class Tab extends JPanel {
                        String tabs[] = {"One", "Two", "Three", "Four"};
                        public JTabbedPane tabbedPane = new JTabbedPane();

                        public Tab() {
                                                setLayout (new BorderLayout());
                        for (int i=0;i<tabs.length;i++)
                          tabbedPane.addTab (tabs[i], null,
                                             createPane (tabs[i]));
                        tabbedPane.setSelectedIndex(0);
                        tabbedPane.setEnabledAt(1,false); //tag "two" is disabled
                        add (tabbedPane, BorderLayout.CENTER);
                      }
                       JPanel createPane(String s) {
                        JPanel p = new JPanel();
                        p.add(new JLabel(s));
                        return p;
                      }
                    }
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
heyhey_Commented:
>> "need a awt tab class java 1.1"

basically you can use CardLayout for pages and render the Tabs yourself (and track for mouse clicks ...) - I have such a component, but can't publish it ...

or you can search the web ...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.