jphy1 = new JPanel(new BorderLayout());
// 假定
jphy2 = new JPanel(new GridLayout(50, 1, 12, 12));
jphy3 = new JPanel(new GridLayout(2, 1));
jphy_jb1 = new JButton("我的好友");
jphy_jb2 = new JButton("陌生人");
jphy_jb2.addActionListener(this);
jphy_jb3 = new JButton("黑名单");
jscp = new JScrollPane(jphy2);
jphy3.add(jphy_jb2);
jphy3.add(jphy_jb3);
JLabel label[] = new JLabel[50];
for (int i = 0; i < label.length; i++) {
label[i] = new JLabel(i + 1 + "", new ImageIcon(
"Image/touxiang_1.gif"), JLabel.LEFT);
label[i].addMouseListener(this);
jphy2.add(label[i]);