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

正文內(nèi)容

java開發(fā)圖書管理系統(tǒng)用文件存儲(chǔ)數(shù)據(jù)-在線瀏覽

2025-03-25 20:32本頁面
  

【正文】 Vector(),用戶注冊(cè) )。 } } 二:登錄界面及代碼。 /** * author Administrator * */ import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 /** * author Administrator * LogonFrame */ public class LogonFrame extends JFrame{ /** * 登錄控件 */ private static final long serialVersionUID = 1L。 final String PASSWORD=密 碼 :。 final String CANCEL=取消 。 //網(wǎng)格布局行、列 final int ROW=4。//列 //窗體控件定義 private JLabel lblUserName。//此標(biāo)簽用于顯示 密碼 private JTextField txtUserName。//此密碼框用于用戶輸入登錄密碼 private JButton btnOK。//按鈕用于取消 private JCheckBox chkMpwd。//自動(dòng)登錄 //用戶列表 public VectorUser stVector。 final int HEIGHT=400。//設(shè)置窗體標(biāo)題 stVector =(VectorUser)obj。//窗體顯示大小設(shè)置 setVisible(true)。//窗體關(guān)閉 Dimension screenSize = ().getScreenSize()。 ( ( ) / 2, ( ) / 2)。//初始化 } //窗體初始化:增加控件 public void init(){ //網(wǎng)格布局: 3 2 getContentPane().setLayout(new GridLayout(ROW,COL))。 txtUserName=new JTextField()。 txtPassword=new JPasswordField()。 btnCancel =new JButton(CANCEL)。 chkAotuLogon=new JCheckBox(自動(dòng)登錄 )。//用戶名 居中顯示 ( new CompoundBorder( null, new BevelBorder( ) ) )。//用戶名文本本框邊框 (0)。//顯示 密碼: 標(biāo)簽邊框設(shè)置 (new BevelBorder())。 (0)。//獲取用戶輸入用戶名 String password=new String(()).trim()。//創(chuàng)建一個(gè)用戶對(duì)象 boolean flag=false。amp。 } } if(flag){ //登錄成功 ( null, 用戶名: +()+\r\n用戶登錄成功! , 登錄成功 , )。 AllLayoutDemo demo =new AllLayoutDemo()。 (true)。 (NULL)。//口令密碼框設(shè)置為空 (true)。 //取消按鈕 (new ActionListener() { public void actionPerformed(ActionEvent e) { dispose()。 //增加相應(yīng)控件 getContentPane().add(lblUserName)。 getContentPane().add(lblPassword)。 getContentPane().add(chkMpwd)。 JPanel jp1 = new JPanel()。 (btnOK)。 getContentPane().add(jp1)。 } public static void main(String args[]){ VectorUser stVector=new VectorUser ()。 (0,new User(xl,123456))。 (2,new User(Jack,123456))。 LogonFrame frame = new LogonFrame(stVector,用戶登錄 )。 . . } } 三:登錄主界面及代碼。 /** * author Administrator * */ import .*。 import .*。 import .*。 private JLabel text = new JLabel(圖書詳細(xì)信息 )。 private JMenuBar jmb = new JMenuBar()。 private JMenu listmenu = new JMenu(排序 )。 ///////////////////////////////////////////////////// private JButton btnSearch = new JButton(查找數(shù)據(jù) )。 private JButton btnDelete = new JButton(刪除數(shù)據(jù) )。 private BookData list[] = new BookData[1000]。 private String lib[] = new String[1000]。 private JMenuItem exitItem = new JMenuItem(退出 , 39。)。H39。 private JMenuItem numlistItem = new JMenuItem(按圖書號(hào)排序 , 39。)。I39。 private JMenuItem SearchItem = new JMenuItem(查找數(shù)據(jù) ,39。)。D39。 private JMenuItem ChangeItem = new JMenuItem(修改數(shù)據(jù) ,39。)。 //無參構(gòu)造函數(shù),實(shí)現(xiàn)對(duì)圖形界面的初始化 public AllLayoutDemo() { super(圖書管理信息系統(tǒng) )。 (false)。 } //主方法 // public static void main(String args[]) // { //// AllLayoutDemo frame = new AllLayoutDemo()。 //// ()。 ()。 String lib[] = new String[1000]。 (null)。 (220,10,200,25)。i = ()。 string = 圖書號(hào) : + list[i].number + 圖書名 : + list[i].name + 作者 :+list[i].author+ 圖書價(jià)格 :+list[i].price+ 到館時(shí)間 : + list[i].ltime + 借出時(shí)間 : + list[i].otime。 } ///////////////////////////////////////////////// JScrollPane myScrollPane=new JScrollPane()。 (Book)。 ().add(myScrollPane)。 (jmb)。 (listmenu)。 (InsertItem)。 (SearchItem)。 ( (, ))。 . . ( (, ))。 //創(chuàng)建事件監(jiān)聽器 (this)。 (this)。 (numlistItem)。 (this)。 (exitItem)。 ( (, ))。 (this)。 SearchLayoutDemo search=new SearchLayoutDemo()。 //加載組件 ////////////////////////////////////////////// (text1)。 Book = new JList(lib)。 (10,450,570,150)。 ().add(Book,null)。 ()。i = ()。 lib[i] = string。 // lib[i] = string。 a=(.)。 c=(:)。 date[i][1] = ((a+1,b))。 date[i][3] = ((c+1,()))。 int index。 DataOperate op = new DataOperate()。 //numlistItem事件 if(() == numlistItem) { for(i = 1。i++) lib[i] = 。i = ()。j = ()i。 list[j] = list[j+1]。 } } } ()。 // ()。 SearchLayoutDemo window1 = new SearchLayoutDemo()。 // ()。 } //2. if(()==InsertItem) { dispose()。 ()。 // ()。 DeleteLayoutDemo window3 = new DeleteLayoutDemo()。 (true)。 } //4. if(() == ChangeItem) { ChangeLayoutDemo cl = new ChangeLayoutDemo()。 (true)。 } //5 if(() == helpItem) { JOptionPane jop = new JOptionPane()。 (true)。 } //6 if(() == exitItem) { dispose()。 /** * author Administrator * */ import .*。 import .*。 import .*。 private JLabel lbname = new JLabel()。 private JLabel lbprice = new JLabel()。 private JLabel lbotime = new JLabel()。 private JTextField tfnum = new JTextField()。 private JTextField tfauthor = new JTextField()。 private JTextField tfltime = new JTextField()。 // private JLabel tfotime1 = new JLabel()。 private JButton btnCancel = new JButton(取消 )。 public InsertLayoutDemo() { super(增加圖書信息窗口 )。 (false)。 getContentPane().setLayout(null)。 ()。 // ()。 (圖書編號(hào) :)。 (16,30,80,16)。 (73,30,255,22)。 (lbname)。 (tfname)。 /////////////////////////////////////////// (作者 :)。 (16,90,80,
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1