原代码: import java.awt.Color; import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.Toolkit; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JPasswordField; import javax.swing.JTabbedPane; import javax.swing.JTextField; public class Test extends JFrame { JPanel jp1; JPanel qqjp; JTabbedPane jtp; ImageIcon icon; JLabel jl; public void addqqjp() { qqjp = new JPanel(); JPanel jp1 = new JPanel(); JPanel jp2 = new JPanel(); JPanel jp3 = new JPanel(); JPanel jp4 = new JPanel(); JLabel jl = new JLabel("QQ号码:"); jl.setBounds(3, 5, 50, 20); JLabel j2 = new JLabel("QQ密码:"); JLabel j3