displaypanel.java~2~

来自「这是Java数据库系统项目开发实践源代码,所有代码经过测试」· JAVA~2~ 代码 · 共 32 行

JAVA~2~
32
字号
package enterpriseemployeeadministrate;import javax.swing.*;import java.awt.*;import com.borland.dbswing.*;import com.borland.dx.sql.dataset.*;public class DisplayPanel extends JFrame{  BorderLayout borderLayout1 = new BorderLayout();  TableScrollPane tableScrollPane1 = new TableScrollPane();  JdbTable jdbTable1 = new JdbTable();  Database database1 = new Database();  QueryDataSet queryDataSet1 = new QueryDataSet();  public DisplayPanel() {    try {      jbInit();    }    catch(Exception e) {      e.printStackTrace();    }  }  private void jbInit() throws Exception {    this.getContentPane().setLayout(borderLayout1);    database1.setConnection(new com.borland.dx.sql.dataset.ConnectionDescriptor("jdbc:odbc:person", "", "", false, "sun.jdbc.odbc.JdbcOdbcDriver"));    queryDataSet1.setQuery(new com.borland.dx.sql.dataset.QueryDescriptor(database1, "select * from person_info", null, true, Load.ALL));    this.getContentPane().add(tableScrollPane1, BorderLayout.NORTH);    tableScrollPane1.getViewport().add(jdbTable1, null);  }}

⌨️ 快捷键说明

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