一个很好的JAVA图书馆查询代码,它有学生查询和老师查询等

源代码在线查看: logo.java

软件大小: 315 K
上传用户: GreatMarxist
关键词: JAVA 查询 图书馆 代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				//import the packages for using the classes in them into the program
				   import java.awt.*;
				   import javax.swing.*;
				
				/**
				 *A public class
				 */
				   public class Logo extends JWindow {
				   //constructor of Logo
				      public Logo() {
				      //for creating the panel
				         JPanel panel = 
				            new JPanel() {
				            //for painting the component
				               public void paintComponent(Graphics g) {
				               //for getting the image
				                  ImageIcon img = new ImageIcon(ClassLoader.getSystemResource("images/Logo.JPG"));
				               //for drawing the image
				                  g.drawImage(img.getImage(), 0, 0, null);
				                  super.paintComponent(g);
				               }
				            };
				         panel.setOpaque(false);
				      //for setting the border
				         panel.setBorder(BorderFactory.createEtchedBorder());
				      //for setting the panel in the contentPane
				         setContentPane(panel);
				      //for setting the ContentPane to true
				      
				      //for setting the background
				         panel.setBackground(Color.black);
				      
				      //for setting the size
				         setSize(350,250);
				      /****************************************
				       *for setting the program in the center *
				       *@see center.java						*
				       ****************************************/
				      
				         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
				         setLocation((screenSize.width - getSize().width)/2,(screenSize.height-getSize().height) / 2);
				         setVisible(true);
				      }
				   }			

相关资源