import javax.swing.JFrame;
import javax.swing.JTabbedPane;
import javax.swing.JButton;
public class CardLayout8_20 
{
	public static void main(String[] args) 
	{
		JFrame frame=new JFrame("CardLayout举例");		
		frame.setBounds(160,160,300,150);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		JTabbedPane t=new JTabbedPane();
		t.setTabPlacement(JTabbedPane.TOP);
		JButton bt1=new JButton("销售业务办理");
		JButton bt2=new JButton("库存业务办理");
		JButton bt3=new JButton("进货业务办理");
		frame.add(t);
		t.addTab("销售管理", bt1);
		t.addTab("库存管理", bt2);
		t.addTab("进货管理", bt3);
		t.setSelectedIndex(0);
		frame.setVisible(true);
	}
}