public class sda extends JFrame{
public sda() {
JPanel jp=new JPanel();
JPanel jp1=new JPanel();
JPanel jp2=new JPanel();
this.add(jp,BorderLayout.SOUTH);
this.add(jp2,BorderLayout.NORTH);
this.add(jp1,BorderLayout.CENTER);
JLabel JL1=new JLabel(new ImageIcon("QQ图片20140418225131.jpg"));
this.add(JL1);
this.setSize(400,500);
this.setVisible(true);
}
public sda() {
JPanel jp=new JPanel();
JPanel jp1=new JPanel();
JPanel jp2=new JPanel();
this.add(jp,BorderLayout.SOUTH);
this.add(jp2,BorderLayout.NORTH);
this.add(jp1,BorderLayout.CENTER);
JLabel JL1=new JLabel(new ImageIcon("QQ图片20140418225131.jpg"));
this.add(JL1);
this.setSize(400,500);
this.setVisible(true);
}