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

📄 mydatamoduleappframe1.java

📁 java 数据库编程源代码
💻 JAVA
字号:
package mydatamoduleapp;import java.awt.*;import javax.swing.JFrame;import com.borland.dx.sql.dataset.*;import com.borland.dbswing.*;import com.borland.dx.dataset.*;/** * Title:        JBuilder数据模块的应用 * Description:  Java语言演示程序:JBuilder数据模块的应用,用于北京师范大学计算机系Java课程教学示范。 * Copyright:    Copyright (c) 2002 * Company:      北京师范大学计算机系 * @author * @version 1.0 */public class myDataModuleAppFrame1 extends JFrame {  DataModule1 dataModule11;  QueryDataSet queryDataSet1 = new QueryDataSet();  JdbNavToolBar jdbNavToolBar1 = new JdbNavToolBar();  JdbStatusLabel jdbStatusLabel1 = new JdbStatusLabel();  TableScrollPane tableScrollPane1 = new TableScrollPane();  JdbTable jdbTable1 = new JdbTable();  public myDataModuleAppFrame1() {    try {      jbInit();    }    catch(Exception e) {      e.printStackTrace();    }  }  private void jbInit() throws Exception {    dataModule11 = mydatamoduleapp.DataModule1.getDataModule();    queryDataSet1.setQuery(new com.borland.dx.sql.dataset.QueryDescriptor(dataModule11.getDatabase1(), "select * from studentaddress", null, true, Load.ALL));    this.setTitle("JBuilder数据模块的应用");    jdbStatusLabel1.setText("jdbStatusLabel1");    jdbStatusLabel1.setDataSet(queryDataSet1);    jdbTable1.setDataSet(queryDataSet1);    jdbNavToolBar1.setDataSet(queryDataSet1);    this.getContentPane().add(jdbNavToolBar1, BorderLayout.NORTH);    this.getContentPane().add(jdbStatusLabel1, BorderLayout.SOUTH);    this.getContentPane().add(tableScrollPane1, BorderLayout.CENTER);    tableScrollPane1.getViewport().add(jdbTable1, null);  }}

⌨️ 快捷键说明

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