📄 frame3.java~4~
字号:
package test1;import javax.swing.*;import com.borland.dx.sql.dataset.*;import com.borland.dbswing.*;import java.awt.*;/** * <p>Title: 图书管理系统</p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2007</p> * <p>Company: </p> * @author koma * @version 1.0 */public class Frame3 extends JFrame { Database database1 = new Database(); QueryDataSet queryDataSet1 = new QueryDataSet(); TableScrollPane tableScrollPane1 = new TableScrollPane(); JdbTable jdbTable1 = new JdbTable(); public Frame3() { this.setTitle("用户管理"); this.setSize(500,500); this.setLocation(300,150); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } private void jbInit() throws Exception { this.getContentPane().setLayout(null); queryDataSet1.setQuery(new com.borland.dx.sql.dataset.QueryDescriptor(database1, "select * from user1", null, true, Load.ALL)); database1.setConnection(new com.borland.dx.sql.dataset.ConnectionDescriptor("jdbc:odbc:432", "", "", false, "sun.jdbc.odbc.JdbcOdbcDriver")); tableScrollPane1.setBounds(new Rectangle(1, 17, 424, 269)); jdbTable1.setCustomColumns(null); jdbTable1.setDataSet(queryDataSet1); this.getContentPane().add(tableScrollPane1, null); tableScrollPane1.getViewport().add(jdbTable1, null); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -