frame12.java

来自「这是用VB编写的一个图书馆管理系统,很好用,特别是对初学者有很好的引导作用.」· Java 代码 · 共 44 行

JAVA
44
字号
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(400,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 + =
减小字号Ctrl + -
显示快捷键?