freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

物資合同管理系統(tǒng)代碼(已修改)

2025-05-26 12:34 本頁面
 

【正文】 //導(dǎo)入系統(tǒng)的包import .*。import .*。import .*。//創(chuàng)建主界面類public class MainFrame extends JFrame implements ActionListener{ //創(chuàng)建內(nèi)容面板 JPanel contentPane。 //創(chuàng)建菜單欄 JMenuBar jMenuBar1=new JMenuBar()。 JMenu jMenu=new JMenu(產(chǎn)品管理)。 JMenuItem jMenuFile1=new JMenuItem(添加產(chǎn)品)。 JMenuItem jMenuFile2=new JMenuItem(刪除產(chǎn)品)。 JMenuItem jMenuFile3=new JMenuItem(查詢產(chǎn)品)。 JMenuItem jMenuFile4=new JMenuItem(修改產(chǎn)品)。 ////////////////////////////////////////// JMenu jMenu1=new JMenu(客戶管理)。 JMenuItem jMenuItem1=new JMenuItem(添加客戶)。 JMenuItem jMenuItem2=new JMenuItem(刪除客戶)。 JMenuItem jMenuItem3=new JMenuItem(查詢客戶)。 JMenuItem jMenuItem4=new JMenuItem(修改客戶)。 /////////////////////////////////////////////// JMenu jMenu2=new JMenu(合同管理)。 JMenuItem jMenuItem5=new JMenuItem(添加合同)。 JMenuItem jMenuItem6=new JMenuItem(刪除合同)。 JMenuItem jMenuItem7=new JMenuItem(查詢合同)。 JMenuItem jMenuItem8=new JMenuItem(修改合同)。 ////////////////////////////////////////////// JMenu jMenuHelp=new JMenu(幫助)。 JMenuItem jMenuHelpAbout=new JMenuItem(關(guān)于)。 JMenuItem jMenuHelpAbout2=new JMenuItem(退出)。 //創(chuàng)建標簽,用于顯示信息 JLabel jLabel1=new JLabel(歡迎使用物資合同管理系統(tǒng))。 JLabel jLabel2=new JLabel(2010年6月20日,涂誠)。 //構(gòu)造方法,創(chuàng)建對象時自動調(diào)用 public MainFrame() { try{ //關(guān)閉框架窗口時的默認事件方法 setDefaultCloseOperation(EXIT_ON_CLOSE)。 //調(diào)用初始化方法 jbInit()。 } catch(Exception exception){ ()。 } } //界面初始化方法 private void jbInit() throws Exception { //創(chuàng)建內(nèi)容面板和其布局 contentPane =(JPanel) getContentPane()。 (null)。 //框架的大小和其標題 setSize(new Dimension(400,500))。 setTitle(客戶資源管理系統(tǒng))。 //添加事件監(jiān)聽器jMenuItem1 (this)。//退出。 (this)。//關(guān)于 (this)。 (this)。 (this)。 (this)。 /////////////////////////////////// (this)。 (this)。 (this)。 (this)。 ///////////////////////////////////// (this)。 (this)。 (this)。 (this)。 //添加菜單條 setJMenuBar(jMenuBar1)。 //添加菜單組件到菜單條 (jMenu)。 (jMenu1)。 (jMenu2)。 (jMenuHelp)。 //添加菜單項組件到菜單組件 (jMenuHelpAbout)。 (jMenuHelpAbout2)。 /////////////////////// (jMenuFile1)。 (jMenuFile2)。 (jMenuFile3)。 (jMenuFile4)。 ///////////////////// (jMenuItem1)。 (jMenuItem2)。 (jMenuItem3)。 (jMenuItem4)。 ////////////////////// (jMenuItem5)。 (jMenuItem6)。 (jMenuItem7)。 (jMenuItem8)。 //添加標簽到內(nèi)容面板 (jLabel1)。 (jLabel2)。 //設(shè)置標簽組件的大小和字體 (new (宋體,20))。 (new Rectangle(65,70,275,55))。 (new (宋體,16))。 (new Rectangle(90,150,200,35))。 } //菜單事件的處理方法 public void actionPerformed(ActionEvent actionEvent) { //點擊“文件”菜單下的“退出”菜單項 if(()==jMenuHelpAbout2) { (0)。 } //點擊“產(chǎn)品管理”菜單下的“添加產(chǎn)品”菜單項 if(()==jMenuFile1) { //創(chuàng)建添加產(chǎn)品面板對象 AddProduct add=new AddProduct()。 //移除主界面上原有的內(nèi)容 (())。 (add)。 //令界面可見 (true)。 } //點擊“產(chǎn)品管理”菜單下的“刪除產(chǎn)品”菜單項 if(()==jMenuFile2) { //創(chuàng)建刪除產(chǎn)品面板對象 DeleteProduct delete=new DeleteProduct()。 (())。 (delete)。 //令界面可見 (true)。 } //點擊“產(chǎn)品管理”菜單下的“查詢產(chǎn)品”菜單項 if(()==jMenuFile3) { //創(chuàng)建查詢產(chǎn)品面板對象 InquiryProduct add=new InquiryProduct()。 //移除主界面上原有的內(nèi)容 (())。 (add)。 //令界面可見 (true)。 } //點擊“產(chǎn)品管理”菜單下的“修改產(chǎn)品”菜單項 if(()==jMenuFile4) { //創(chuàng)建刪除產(chǎn)品面板對象 ChangeProduct delete=new ChangeProduct()。 //移除主界面上原有的內(nèi)容 (())。 (delete)。 //令界面可見 (true)。 } ///////////////////////////////////////////////////////// //客戶管理增加客戶 if(()==jMenuItem1) { //創(chuàng)建添加產(chǎn)品面板對象 AddCustomer delete=new AddCustomer()。 //移除主界面上原有的內(nèi)容 (())。 (delete)。 //令界面可見 (true)。 } //刪除客戶 if(()==jMenuItem2) { //創(chuàng)建添加產(chǎn)品面板對象 DeleteCustomer delete = new DeleteCustomer()。 //移除主界面上原有的內(nèi)容 (())。 (delete)。 //令界面可見 (true)。 } //查詢客戶 if(()==jMenuItem3) { //創(chuàng)建查詢產(chǎn)品面板對象 InquiryCustomer add=new InquiryCustomer()。 //移除主界面上原有的內(nèi)容 (())。 (add)。 //令界面可見 (true)。 } //修改客戶 if(()==jMenuItem4) { //創(chuàng)建刪除產(chǎn)品面板對象 ChangeCustomer delete=new ChangeCustomer()。 //移除主界面上原有的內(nèi)容 (())。 (delete)。 //令界面可見 (true)。 } //合同管理 //增加合同 if(()==jMenuItem5) { //創(chuàng)建刪除產(chǎn)品面板對象 AddContract delete=new AddContract()。 //移除主界面上原有的內(nèi)容 (())。 (delete)。 //令界面可見 (true)。 } //刪除合同 if(()==jMenuItem6) { //創(chuàng)建刪除產(chǎn)品面板對象 DeleteContract delete=new DeleteContract()。 //移除主界面上原有的內(nèi)容 (())。 (delete)。 //令界面可見 (true)。 } //查詢合同 if(()==jMenuItem7) { //創(chuàng)建刪除產(chǎn)品面板對象 InquiryContract delete=new InquiryContract()。 //移除主界面上原有的內(nèi)容 (())。 (delete)。 //令界面可見 (true)。 } //修改合同 if(()==jMenuItem8) { //創(chuàng)建刪除產(chǎn)品面板對象 ChangeContract delete=new ChangeContract()。 //移除主界面上原有的內(nèi)容 (())。 (delete)。 //令界面可見 (true)。 } if(()==jMenuHelpAbout) { //創(chuàng)建“關(guān)于”對話框的對象 MainFrame_AboutBox dlg=new MainFrame_AboutBox(this,客戶資源管理系統(tǒng),true)。 //設(shè)置dlg對話框的尺寸 (260,220)。 Dimension dlgSize=()。 //獲得窗口的尺寸 Dimension frmSize=getSize()。 //獲得窗口的位置 Point loc =getLocation()。 //令對話框在原窗口中間顯示 (()/2+,()/2+)。 //什么作用pack()? //()。 //令對話框dlg可見 (true)。 } }}//導(dǎo)入系統(tǒng)的類包import .*。import .*。//創(chuàng)建對話框類public class MainFrame_AboutBox extends JDialog{ // JPanel jpanel1=new JPanel()。 //創(chuàng)建標簽對象 JLabel jLabel1=new JLabel(客戶資源管理系統(tǒng))。 JLabel jLabel2=new JLabel(作者:涂誠)。 JLabel jLabel3=new JLabel(版本號:20120620)。 //帶參數(shù)的構(gòu)造方法 public MainFrame_AboutBox(Frame owner,String title,boolean modal) { //調(diào)用父類的構(gòu)造函數(shù) super(owner,title,modal)。 try{ //調(diào)用初始化方法 jbInit()。 } catch(Exception exception){ ()。 } } //不帶參數(shù)的構(gòu)造方法 public MainFrame_AboutBox() { this(new JFrame(),MainFrame_AboutBox,false)。 } //界面初始化方法 private void jbInit()
點擊復(fù)制文檔內(nèi)容
規(guī)章制度相關(guān)推薦
文庫吧 www.dybbs8.com
公安備案圖鄂ICP備17016276號-1