⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cheng.java

📁 这是自己做的图书馆信息管理系统
💻 JAVA
字号:
package infomanagement;
import java.awt.BorderLayout;
import javax.swing.BorderFactory;
import javax.swing.JPanel;
import java.awt.Font;
import com.borland.jbcl.layout.XYLayout;
import java.awt.Color;
import com.borland.dx.dataset.Column;
import javax.swing.JDialog;
import javax.swing.JTextField;
import java.awt.Frame;
import com.borland.dx.sql.dataset.Database;
import com.borland.dx.sql.dataset.QueryDataSet;
import javax.swing.JLabel;
import com.borland.jbcl.layout.XYConstraints;
import javax.swing.JButton;
import java.awt.event.MouseEvent;
import java.awt.Dimension;
import java.awt.Point;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import javax.swing.ImageIcon;
/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2003</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class cheng extends JDialog{
  private JPanel jPanel1 = new JPanel();
  private XYLayout xYLayout1 = new XYLayout();
  //private JLabel jLabel1 = new JLabel();
  private JLabel jLabel4 = new JLabel("欢迎下次再来");
  private QueryDataSet queryDataSet1 = new QueryDataSet();
  private Database database1 = new Database();
  private QueryDataSet queryDataSet2 = new QueryDataSet();
  private Column column1 = new Column();
  JLabel jLabel1 = new JLabel();

  public cheng()
  {
    try {
      jbInit();
    }
    catch (Exception ex) {
      ex.printStackTrace();
    }

  }
  public cheng(String st)
  {
    JLabel jl=new JLabel(st);
    jPanel1.setLayout(xYLayout1);
    jl.setFont(new java.awt.Font("Dialog", 0, 23));
    jl.setForeground(Color.magenta);
    jl.setBorder(BorderFactory.createEtchedBorder());
    //jLabel1.setText(jlabel1);
    //jLabel4.setBorder(BorderFactory.createEtchedBorder());
    //this.setSize(100,80);
    ImageIcon img = new ImageIcon("D:\\tupian\\yu.jpg");
    //JLabel background
      jLabel1  = new JLabel(img);
    //this.getContentPane().add(jLabel1, new Integer(Integer.MIN_VALUE));
    jLabel1.setBounds(0, 0, img.getIconWidth(), img.getIconHeight());

    this.getContentPane().add(jPanel1, BorderLayout.CENTER);
    jPanel1.add(jl, new XYConstraints(0, 1, 399, 53));
    jPanel1.add(jLabel1, new XYConstraints(2, 50, 397, 202));

    }
    void abClicked(MouseEvent e)
    {


    }
    void cancel()
    {
     dispose() ;
    }

  private void jbInit() throws Exception {
    jLabel1.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
    jLabel1.setForeground(Color.magenta);
    jLabel1.setText("            欢迎下次在来");
    this.getContentPane().add(jLabel1, java.awt.BorderLayout.CENTER);
    ImageIcon img = new ImageIcon("D:\\tupian\\yu.jpg");
    //JLabel background
      jLabel1  = new JLabel(img);
    this.getLayeredPane().add(jLabel1, new Integer(Integer.MIN_VALUE));
    jLabel1.setBounds(0, 0, img.getIconWidth(), img.getIconHeight());



  }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -