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

正文內(nèi)容

長江企業(yè)進銷存管理系統(tǒng)的設(shè)計與實現(xiàn)(編輯修改稿)

2025-05-05 06:37 本頁面
 

【文章內(nèi)容簡介】 。,可以通過Class類的getConstructor()方法獲取Constructor類的實例對象,然后調(diào)用該對象的newInstance()方法創(chuàng)建類的實例對象。關(guān)鍵代碼如下://采用Java中的反射機制處理內(nèi)部窗口。這樣可以大大簡化代碼量 private final JInternalFrame getInternalFrame(String framename){ JInternalFrame internalFrame=null。 //生成唯一的內(nèi)部窗體對象(通過判斷HashMap中是否已經(jīng)有了內(nèi)部窗體對象)if(!(framename)){ try { Class tempClass=(.+framename)。 Constructor constructor=()。 internalFrame=(JInternalFrame)()。 (framename, internalFrame)。 } catch (Exception e) { ()。 } } else{ internalFrame=(framename)。 } return internalFrame。 } //多個內(nèi)部窗體對象[8] private MapString, JInternalFrame ifs = new HashMapString, JInternalFrame()。 public WeleFrame() { frame=new JFrame(企業(yè)進銷存系統(tǒng))。 updateBackImage()。 //添加、更新背景圖片 desktopPane=new JDesktopPane()。 (backLabel,new Integer())。 ().add(Center,desktopPane)。 //在窗體中添加JDesktopPane對象 JTabbedPane navigatorPane=createNavigatorPane()。 //創(chuàng)建導(dǎo)航面板 ().add(North,navigatorPane)。 .......... (true)。 }private void updateBackImage(){ //添加、更新背景圖片 if(backLabel!=null){nt imageWidth=()。 int imageHeight=()110。(imageWidth,imageHeight)。 (htmlbodyimg width=39。+imageWidth+39。 height=39。+ imageHeight+39。 src=39。+().getResource()+39。+ /img/body/html )。 } } private JTabbedPane createNavigatorPane(){ JTabbedPane navigatorPane=new JTabbedPane()。 (new BevelBorder())。 (new Color(211, 230, 192))。 (false)。 JPanel stockManagePanel=new JPanel()。 //進貨管理 (new Color(215, 223, 194))。 (new BoxLayout(stockManagePanel,))。 (createButton(進貨單,Jinhuodan))。 (createButton(退貨,Tuihuo))。 JPanel saleManagePanel=new JPanel()。 //銷售管理 ........... JPanel storageManagePanel=new JPanel()。 //庫存管理 ........... JPanel baseInfoManagePanel=new JPanel()。 //基礎(chǔ)信息管理 ........... JPanel searchStatisticManagePanel=new JPanel()。 //查詢統(tǒng)計 ...........JPanel systemManagePanel=new JPanel()。 //系統(tǒng)管理 //將以上各個面板添加到導(dǎo)航面板中 ( 進貨管理 ,null,stockManagePanel,進貨管理)。 ( 銷售管理 ,null,saleManagePanel,銷售管理)。 ( 庫存管理 ,null,storageManagePanel,庫存管理)。 ( 基礎(chǔ)信息管理 ,null,baseInfoManagePanel,基礎(chǔ)信息管理)。( 查詢統(tǒng)計 ,null,searchStatisticManagePanel,查詢統(tǒng)計)。 ( 系統(tǒng)管理 ,null,systemManagePanel,系統(tǒng)管理)。return navigatorPane。 } private JButton createButton(String ame,String fname){ String picUrl=res/ActionIcon/+ame+.png。 //原始圖片 String picUrl_roll=res/ActionIcon/+ame+。 //鼠標(biāo)經(jīng)過時顯示的圖片 String picUrl_down=res/ActionIcon/+ame+。 //鼠標(biāo)按下時顯示的圖片 Icon icon=new ImageIcon(picUrl)。 Icon icon_roll=new ImageIcon(picUrl_roll)。 Icon icon_down=new ImageIcon(picUrl_down)。 Action action=new openFrameAction(ame,fname,icon)。 //點擊按鈕響應(yīng)的事件 JButton button=new JButton(action)。 //設(shè)置按鈕外觀樣式,美化界面 (new Insets(0, 0, 0, 0))。 //設(shè)置按鈕邊框和標(biāo)簽之間的空白(top,left,bottom,right)全為空白 ()。 (false)。 //設(shè)置按鈕獲取焦點后,是否顯示焦點樣式。此處取消,更美觀 (false)。 //設(shè)置是否繪制邊框,此處取消,更美觀 (false)。 //希望繪制圖標(biāo)按鈕就將此屬性設(shè)置為false //設(shè)置鼠標(biāo)經(jīng)過,按下時按鈕樣式 if(icon_roll!=null) (icon_roll)。 if(icon_down!=null) (icon_down)。 return button。 } //編寫內(nèi)部類,它繼承AbstractAction對象,實現(xiàn)Action接口 protected class openFrameAction extends AbstractAction{ private static final long serialVersionUID = 1L。 String framename=。//構(gòu)造方法,接受傳遞過來的參數(shù) public openFrameAction(String ame,String framename,Icon icon){ =framename。 (, ame)。 //設(shè)置點擊按鈕的動作名(, ame)。 //設(shè)置按鈕上的Tooltip文字 (, icon)。 //設(shè)置按鈕圖標(biāo) } //點擊按鈕響應(yīng)的事件。(即生成相應(yīng)的內(nèi)部窗體然后顯示出來) public void actionPerformed(ActionEvent e){ JInternalFrame internalFrame= getInternalFrame(framename)。 //調(diào)用getInternalFrame()方法生產(chǎn)內(nèi)部窗體 if(()==null){ (internalFrame)。 //將內(nèi)部窗體添加為JDesktopPane實例的內(nèi)部窗體 (true)。 //將內(nèi)部窗體顯示出來 } //添加內(nèi)部窗體偵聽器,當(dāng)點擊關(guān)閉按鈕時需要從HashMap對象中清除此內(nèi)部窗體對象 (new InternalFrameAdapter(){ public void internalFrameClosed(InternalFrameEvent e){ (framename)。 } })。 //當(dāng)打開內(nèi)部窗體時,默認為選中此內(nèi)部窗體 try { (true)。 } catch (PropertyVetoException e1) { ()。 } } } .....................反射機制部分,詳見主窗體解說部分。 //當(dāng)改變窗體大小時更新背景圖片,使之占用整個窗體 private class ResizeFrameListener extends ComponentAdapter{ public void ponentResized(ComponentEvent e){updateBackImage()。 } } /*** 程序入口 */ public static void main(String[] args) { try{ (())。 }catch(Exception e){ ()。 } new Login()。 //創(chuàng)建登錄界面 }}根據(jù)在數(shù)據(jù)庫需求階段的分析,設(shè)計數(shù)據(jù)庫表格如下:表1客戶信息表(customer)表2商品信息表(ware)表3供應(yīng)商信息表(pro
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1