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

📄 tabledatasetframe.java~15~

📁 jbuilder2006一书的所有源代码
💻 JAVA~15~
字号:
package dataexpress;import java.awt.*;import java.awt.event.*;import javax.swing.*;import com.borland.dx.dataset.*;public class TableDataSetFrame extends JFrame {  JPanel contentPane;  BorderLayout borderLayout1 = new BorderLayout();  TextDataFile textDataFile1 = new TextDataFile();  TableDataSet tableDataSet1 = new TableDataSet();  public TableDataSetFrame() {    try {      jbInit();    }    catch(Exception e) {      e.printStackTrace();    }  }  private void jbInit() throws Exception  {    contentPane = (JPanel) this.getContentPane();    contentPane.setLayout(borderLayout1);    this.setSize(new Dimension(400, 300));    this.setTitle("TableDataSet示例");    //与bookcategory.txt文本文件建立连接,默认路径是程序的运行路径    textDataFile1.setFileName("bookcategory.txt");    //与文本文件的数据源建立连系    tableDataSet1.setDataFile(textDataFile1);  }  protected void processWindowEvent(WindowEvent e) {    if (e.getID() == WindowEvent.WINDOW_CLOSING) {      System.exit(0);    }  }}

⌨️ 快捷键说明

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