文件名称:库存管理系统 java 源文件
文件大小:12KB
文件格式:JAVA
更新时间:2013-07-10 04:54:28
库存管理系统 java 源文件
//package chapter1; import java.text.*; import javax.swing.*; import java.awt.*; import javax.swing.event.*; import java.awt.event.*; import java.util.*; //package chapter1; import java.awt.BorderLayout; import java.awt.event.*; import javax.swing.*; public class MainFrame extends JFrame { private Inventory inventory=new Inventory(); private Invoice invoice=new Invoice(inventory); final JTextArea textArea_1=new JTextArea(); //显示存货单信息 final JTextArea textArea_2=new JTextArea(); //显示提货单信息 public static void main(String args[]) { MainFrame frame=new MainFrame(); frame.setBounds(100,100,450,300); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); //框架可见 } public MainFrame() { super(); setTitle("商品库存管理系统"); final JTabbedPane tabbedPane =new JTabbedPane(); //定义总和面板tabbedPane 包含提货单和存货单 final JPanel panel_1=new JPanel(); //定义放存货单面板 final JPanel panel_2=new JPanel(); //定义放提货单面板 final JScrollPane srcollPane_1 =new JScrollPane(textArea_1); final JScrollPane srcollPane_2 =new JScrollPane(textArea_2); final JTextField id_1=new JTextField(4); final JTextField number_1=new JTextField(4); //欲修改的存货单某项的数量 final JTextField id_2=new JTextField(4); final JTextField number_2=new JTextField(4); //欲修改的提货单某项的数量 final JPanel paneButton_1 =new JPanel(); final JPanel paneButton_2 =new JPanel(); final JPanel paneInputl_1=new JPanel(); final JPanel paneInput_2=new JPanel();