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

📄 frame12.java~5~

📁 这是用VB编写的一个图书馆管理系统,很好用,特别是对初学者有很好的引导作用.
💻 JAVA~5~
字号:
package test1;import javax.swing.*;import java.awt.*;import com.borland.dx.sql.dataset.*;import com.borland.dbswing.*;/** * <p>Title: 图书管理系统</p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2007</p> * <p>Company: </p> * @author koma * @version 1.0 */public class Frame12 extends JFrame {  Database database1 = new Database();  QueryDataSet queryDataSet1 = new QueryDataSet();  TableScrollPane tableScrollPane1 = new TableScrollPane();  JdbTable jdbTable1 = new JdbTable();  public Frame12() {    this.setTitle("个人信息");    this.setSize(500,200);    this.setLocation(400,250);    try {      jbInit();    }    catch(Exception e) {      e.printStackTrace();    }  }  private void jbInit() throws Exception {    queryDataSet1.setQuery(new com.borland.dx.sql.dataset.QueryDescriptor(database1, "select * from user  where 证件号='"+Frame1.userNo+"'", null, true, Load.ALL));    database1.setConnection(new com.borland.dx.sql.dataset.ConnectionDescriptor("jdbc:odbc:图书管理系统", "koma", "koma", false, "sun.jdbc.odbc.JdbcOdbcDriver"));    this.getContentPane().setLayout(null);    tableScrollPane1.setBounds(new Rectangle(15, 26, 371, 87));    jdbTable1.setDataSet(queryDataSet1);    this.getContentPane().add(tableScrollPane1, null);    tableScrollPane1.getViewport().add(jdbTable1, null);  }}

⌨️ 快捷键说明

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