frame3.java~4~
来自「这是用VB编写的一个图书馆管理系统,很好用,特别是对初学者有很好的引导作用.」· JAVA~4~ 代码 · 共 45 行
JAVA~4~
45 行
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 + =
减小字号Ctrl + -
显示快捷键?