importJava.awt.BorderLayoutimportjava.awt.Color.*;importjavax.swing.JPanel;importjavax.swing.JFrame;importjavax.swing.JLabel;importjavax.swing.ImageIcon;importjavax.swing...
import Java.awt.BorderLayout import java.awt.Color.*; import javax.swing.JPanel; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.ImageIcon; import javax.swing.JPanel; public class Icon exetends JFrame{ private JLable jLabel=null; private JPanel jContentPane=null; /** * @param args */ public void IconForme() { super(); finalize(); private void initilize(){ this.setSize=(400,400); this.setLocation(50,150); this.setBackground(Color.WHITE); this.setContentPane(getJContentPane()); this.setTitle("Help"); private JPanel getContentPane(){ if(jContentPane==null){ jLabel=new JLabel(); jLabel.setText("图书管理系统"); jLabel.setIcon(new ImageIcon(getClass()getResource("/gif_welcome13[1].gif"))); jContentPane=new JPanel(); jContentPane.setLayout(new BorderLayout()); jContentPane.add(jLabel,Java.awt.BorderLayout.CENTER); } return jContentPane; } // TODO 自动生成方法存根 }
展开