?? mydatamoduleappframe1.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 + -