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

正文內(nèi)容

圖書(shū)管理系統(tǒng)源代碼-資料下載頁(yè)

2024-10-25 17:27本頁(yè)面
  

【正文】 //圖書(shū)編號(hào)private String bookname。//圖書(shū)名稱(chēng)private String operatorId。//操作員編號(hào)private String borrowDate。//圖書(shū)借閱時(shí)間private String backDate。//圖書(shū)歸還時(shí)間 private String readerName。//讀者姓名 private String reader_id。//讀者編號(hào) private int typeId。private int id; public int getId(){ return id。} public void setId(int id){ =id。} public int getTypeId(){ return typeid。} public void setTypeId(int typeid){ =typeId。} public string getBackDate(){ return backDate。} public void setBackDate(String backDate){ =backDate。} public String getBookname(){ return bookname。} public void setBookname(String bookname){ =bookname。} public string getBorrowDate(){ return borrowDate。} public void setBorrowDate(String borrowDate){ =borrowDate。} public String getOperatorId(){return operatorId。} public void setOperatorId(String operatorId){=operatorId。} public String getBook_id(){return book_id。} public void setBook_id(String book_id){=book_id。}public String getReader_id(){return reader_id。} public void setReader_id(String reader_id){=reader_id。}public String getReaderName(){return readerName。} public void setReaderName(String readerName){=readerName。} }//系統(tǒng)登錄模塊設(shè)計(jì)public class BookLogin extends JFrame { private static final Operater Type=null。//人員類(lèi)型private static Operater user。//用戶(hù)名private JPasswordField password。private JTextField username。private JButton login。private JButton reset。public BookLogin(){super()。final BorderLayout borderLayout=new BorderLayout()。//創(chuàng)建布局管理器setDefaultCloseOperation()。//設(shè)置“關(guān)閉”按鈕處理事件(10)。//設(shè)置組件間的垂直關(guān)系getContentPane().setLayout(borderLayout)。//使用布局管理器setTitle(“圖書(shū)管理系統(tǒng)登錄”)//設(shè)置窗體標(biāo)題Toolkit tool=()。//獲得默認(rèn)的工具箱Dimension screenSize=()。//獲得屏幕的大小setSize(285,194)。setLocation((())/2,(())/2)。//設(shè)置窗體位置final JPanel mainPanel=new JPanel()。//創(chuàng)建主面板(new BorderLayout())。//設(shè)置邊框布局(new EmptyBorder(0,0,0,0))//設(shè)置邊框?yàn)?getContentPane().add(mainPanel)。//在窗體中加入主面板final JLabel imageLabel=new JLabel。//創(chuàng)建一個(gè)標(biāo)簽,用來(lái)顯示圖片ImageIcon loginIcon=(“”)。//創(chuàng)建一個(gè)圖像圖標(biāo)(loginIcon)。//設(shè)置圖片(true)。//設(shè)置繪制其邊界內(nèi)的所有像素()。//設(shè)置背景顏色(new Dimension(260,60))。//設(shè)置標(biāo)簽大小(imageLabel,)。//添加標(biāo)簽到主面板final JPanel centerPanel=new JPanel()。//添加一個(gè)中心面板final GridLayout gridLayout=new GridLayout(2,2)。//創(chuàng)建網(wǎng)絡(luò)布局管理器(5)。//設(shè)置組件之間平行的距離(20)。//設(shè)置組件之間垂直的距離(gridLayout)。//使用布局管理器(centerPanel)。//添加到主桌面final JLabel userNamelabel=new JLabel()。//創(chuàng)建一個(gè)標(biāo)簽()。//設(shè)置對(duì)齊方式(new Dimension(0,0))。//設(shè)置組件大小(new Dimension(0,0))。//設(shè)置組件最小的大小(userNameLabel)。//添加到中心面板(“用戶(hù)名:”)。//設(shè)置標(biāo)簽文本username=new JTextField(20)。//創(chuàng)建文本框(new Dimension(0,0))。//設(shè)置組件大小(username)。//添加到中心面板final JLabel passwordLabel=new JLabel()。//創(chuàng)建一個(gè)標(biāo)簽()。//設(shè)置對(duì)齊方式(passwordLabel)。//添加到中心面板(“密碼:”)。//設(shè)置標(biāo)簽文本password=new JPasswordField(20)。//創(chuàng)建密碼框(new Document(6))。//設(shè)置密碼長(zhǎng)度為6(new KeyAdapter()//監(jiān)聽(tīng)密碼框{public void keyPressed(final keyEvent e)//監(jiān)聽(tīng)鍵盤(pán)案件事件{if(()==10)//如果按了回車(chē)鍵{()。//進(jìn)行登錄}}})(password)。//添加到中心面板final JPanel southPanel=new JPanel。//新增一個(gè)底部面板(southPanel,)。//添加到主面板中l(wèi)ogin=new JButton()。//創(chuàng)建按鈕組件(new BookLoginAtion())。//添加監(jiān)聽(tīng)器(“登錄”)。//設(shè)置按鈕文本(login)。//把按鈕添加到底部面板reset=new JButton()。//創(chuàng)建按鈕組件(new BookResetAction())。//添加監(jiān)聽(tīng)器(“重置”);//設(shè)置按鈕文本(reset)。//把按鈕添加到底部面板setVisible(true)。//設(shè)置創(chuàng)建可見(jiàn)setResizable(false)。//設(shè)置窗體不可改變大小} public static Operater getUser(){return user。} public static Operater getType(){return Type。} public static void setUser(Operater user){=user。} } private class BookResetAction implements ActionListener { public void actionPerformed(final ActionEvent e){(“)。//設(shè)置用戶(hù)名輸入框?yàn)榭?”“)。//設(shè)置密碼輸入框?yàn)榭諁 } private class BookLoginAction implements ActionListener { public void actionPerformed(final ActionEvent e){user=((),new String(()))。//調(diào)用business方法if(()!=null)//判斷用戶(hù)名是否為null{try{Main frame=new Main()。//創(chuàng)建一個(gè)主窗體(true)。//設(shè)置其可見(jiàn)(false)。//設(shè)置登錄窗體為不顯示}catch(Exception ex){()。}}else{(null,”請(qǐng)輸入正確的用戶(hù)名和密碼!“)。//彈出提示框(”“)。//設(shè)置用戶(hù)名輸入框?yàn)榭?”“)。//設(shè)置密碼輸入框?yàn)榭諁 } }//基本信息管理模塊public class ReaderAdd extends JInternalFrame//添加讀者信息 { public ReaderAdd(){super()。setTitle(”讀者相關(guān)信息添加“);setIconifiable(true)。//設(shè)置窗體可最小化setClosable(true)。//設(shè)置窗體可關(guān)閉setBounds(100,100,500,350)。final JLabel logoLabel=new JLabel()。ImageIcon readerAddIcon=(”“)。(readerAddIcon)。(true)。()。(new Dimension(400,60))。getContentPane().add(logoLabel,)。final JPanel panel=new JPanel()。(new FlowLayout())。getContentPane().add(panel)。final JPanel panel_1=new JPanel()。final GridLayout gridLayout=new GridLayout(0,4)。(15)。(15)。(gridLayout)。(new Dimension(450,200))。(panel_1)。final JLabel label_2=new JLabel()。(”姓名:“);(label_2)。readername=new JTextField()。(new Document(10))。(readername)。final JLabel label_3=new JLabel()。public void actionPerformed(final ActionEvent e){Check validator=new Check()。//校驗(yàn)類(lèi)String zj=(())。String id=().trim()。Vector v1=new Vector()。()。(”reader“)。//讀取配置文件中相應(yīng)的查詢(xún)語(yǔ)句(id)。if(l==(V1))//檢查是否存在該讀者{(null,”添加失敗,該讀者編號(hào)已存在!“);}else{Int i=(().trim(),(),().trim(),().trim(),(().trim()),().trim().().trim(),(().trim()),zj,().trim(),(().trim()),().trim())。if(i==1){(null,”添加成功!“)。doDefaultCloseAction()。}}}}class TelListener extends KeyAdapter{ public void keyTyped(KeyEvent e){String numStr=”0123456789“+(char)8。//類(lèi)型轉(zhuǎn)換if((()){()。} }}//添加“關(guān)閉”按鈕的事件監(jiān)聽(tīng)器class CloseActionListener implements ActionListener{public void actionPerformed(final ActionEvent e){doDefaultCloseAction()。}}private String[] columnNames(”名稱(chēng)“,”性別“,”年齡“,”證件號(hào)碼“,”借書(shū)證有效日期“,”借書(shū)量“,”電話(huà)“,”押金“,”證件“,”職業(yè)“,”讀者編號(hào)“,”辦證時(shí)間“);private String[] array=new String[]{”身份證“,”軍人證“,”學(xué)生證“}。String id。private Object[][] getFileStates(List list){Object[][]results=new Object[()][]。for(int i=0。i{Reader reader=(Reader)(i)。result[i][0]=()。//定義二維數(shù)組String sex。if(().equals(”1“)){sex=”男“。}else{sex=”女“;}results[i][1]=sex。//讀取讀者歌屬性值results[i][2]=()。results[i][3]=(
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1