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

📄 goodsman_frm.java~9~

📁 库存管理信息系统
💻 JAVA~9~
字号:
package KcglSys;import java.awt.*;import java.awt.event.*;import javax.swing.*;import com.borland.jbcl.layout.*;import com.borland.dbswing.*;import com.borland.dx.sql.dataset.*;/** * <p>Title: 库存管理信息系统</p> * <p>Description: 库存管理信息系统,企业好帮手</p> * <p>Copyright: Copyright (c) 2004</p> * <p>Company: ios</p> * @author dragon * @version 1.0 */public class GoodsMan_Frm extends JFrame {  JPanel contentPane;  XYLayout xYLayout1 = new XYLayout();  TableScrollPane tableScrollPane1 = new TableScrollPane();  JdbTable jdbTable1 = new JdbTable();  Database database1 = new Database();  QueryDataSet queryDataSet1 = new QueryDataSet();  JdbStatusLabel jdbStatusLabel1 = new JdbStatusLabel();  JdbNavToolBar jdbNavToolBar1 = new JdbNavToolBar();  JButton jButton1 = new JButton();  //Construct the frame  public GoodsMan_Frm() {    enableEvents(AWTEvent.WINDOW_EVENT_MASK);    try {      jbInit();    }    catch(Exception e) {      e.printStackTrace();    }  }  //Component initialization  private void jbInit() throws Exception  {    contentPane = (JPanel) this.getContentPane();    contentPane.setLayout(xYLayout1);    this.setSize(new Dimension(403, 373));    this.setTitle("货物管理");    database1.setConnection(new com.borland.dx.sql.dataset.ConnectionDescriptor("jdbc:odbc:KcglSys", "sa", "sa", false, "sun.jdbc.odbc.JdbcOdbcDriver"));    queryDataSet1.setQuery(new com.borland.dx.sql.dataset.QueryDescriptor(database1, "SELECT GoodsInfo.GoodsId as \"货物编号\",GoodsInfo.GName as \"货物名称\",GoodsInfo.GType " +      "as \"类型\",GoodsInfo.GStyle as \"型号\",GoodsInfo.GUnit as \"计量单位\",GoodsInfo.InPrice " +      "as \"进货价格\",GoodsInfo.OutPrice as \"销售价格\" FROM KcglSys.dbo.GoodsInfo", null, true, Load.ALL));    jdbTable1.setDataSet(queryDataSet1);    tableScrollPane1.setBorder(BorderFactory.createLineBorder(Color.black));    jdbStatusLabel1.setBorder(BorderFactory.createLineBorder(Color.black));    jdbStatusLabel1.setText("jdbStatusLabel1");    jdbStatusLabel1.setDataSet(queryDataSet1);    jdbNavToolBar1.setBorder(BorderFactory.createLineBorder(Color.black));    jButton1.setText("返回");    contentPane.add(tableScrollPane1,    new XYConstraints(7, 9, 379, 235));    contentPane.add(jdbStatusLabel1,         new XYConstraints(7, 243, 380, -1));    contentPane.add(jdbNavToolBar1,       new XYConstraints(7, 260, 380, 40));    contentPane.add(jButton1,    new XYConstraints(159, 309, -1, 22));    tableScrollPane1.getViewport().add(jdbTable1, null);  }  //Overridden so we can exit when window is closed  protected void processWindowEvent(WindowEvent e) {    super.processWindowEvent(e);    if (e.getID() == WindowEvent.WINDOW_CLOSING) {      System.exit(0);    }  }}

⌨️ 快捷键说明

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