import java.awt.Container;import java.awt.GridLayout;import javax.swing.BorderFactory;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JPanel;import javax.swing.JTabbedPane;class Charge{ JFrame frame=new JFrame("ChargeFeeConsole"); Container cont=frame.getContentPane(); JTabbedPane tab=null; JPanel pan1=new JPanel(); JPanel pan2=new JPanel(); public ChargeFeeConsole1() { tab=new JTabbedPane(JTabbedPane.TOP); JButton but=new JButton("按钮"); JLabel lab=new JLabel("标签"); pan1.setBorder(BorderFactory.createTitledBorder("文件设置")); pan1.setLayout(new GridLayout(1,3)); pan1.add(but); pan2.add(lab); tab.addTab("fdf", pan1); tab.addTab("文字选项", pan2); cont.add(tab); frame.pack(); frame.setSize(330,120); frame.setLocation(300, 200); frame.setVisible(true); } }public class ChargeFee { public static void main(String[] args) { new Charge(); } }