计算机应用 | 古代文学 | 市场营销 | 生命科学 | 交通物流 | 财务管理 | 历史学 | 毕业 | 哲学 | 政治 | 财税 | 经济 | 金融 | 审计 | 法学 | 护理学 | 国际经济与贸易
计算机软件 | 新闻传播 | 电子商务 | 土木工程 | 临床医学 | 旅游管理 | 建筑学 | 文学 | 化学 | 数学 | 物理 | 地理 | 理工 | 生命 | 文化 | 企业管理 | 电子信息工程
计算机网络 | 语言文学 | 信息安全 | 工程力学 | 工商管理 | 经济管理 | 计算机 | 机电 | 材料 | 医学 | 药学 | 会计 | 硕士 | 法律 | MBA
现当代文学 | 英美文学 | 通讯工程 | 网络工程 | 行政管理 | 公共管理 | 自动化 | 艺术 | 音乐 | 舞蹈 | 美术 | 本科 | 教育 | 英语 |

生产实习之项目实践图书借阅管理系统设计(一(4)

2013-05-17 01:13
导读:bsp; public ReturnBook() { super("书籍还入"); c=getContentPane(); c.setLayout(new BorderLayout()); ReturnedBookStudentLabel=new JLabel("还书者姓名",JLabel.CENTER); ReturnedBookNameLabel=new J
bsp;
 public ReturnBook()
 {
  super("书籍还入");
  c=getContentPane();
  c.setLayout(new BorderLayout());
  ReturnedBookStudentLabel=new JLabel("还书者姓名",JLabel.CENTER);
  ReturnedBookNameLabel=new JLabel("书名",JLabel.CENTER);
  ReturnedDateLabel=new JLabel("日期",JLabel.CENTER);
  
  ReturnedBookStudentTextField=new JTextField(15);
  ReturnedDateTextField=new JTextField(15);
 
  try
  {
   String s="";
   String strSQL="select bookName from bookBrowse where is_returned='否'";
   rs=db.getResult(strSQL);
   while(rs.next())
   {
    BookNameComboBox.addItem(rs.getString(1));
   }
  }
  catch(SQLException sqle)
  {
   System.out.println(sqle.toString());
  }
  catch(Exception ex)
  {
   System.out.println(ex.toString());
  }
  panel1=new JPanel();
  panel1.setLayout(new GridLayout(4,2));
  panel1.add(ReturnedBookStudentLabel);
  panel1.add(ReturnedBookStudentTextField);
  panel1.add(ReturnedBookNameLabel);
  panel1.add(BookNameComboBox);
  panel1.add(ReturnedDateLabel);
  panel1.add(ReturnedDateTextField);
  
 
  c.add(panel1,BorderLayout.CENTER);
  panel2=new JPanel();
  panel2.setLayout(new GridLayout(1,3));
  ClearBtn=new JButton("清空");
  YesBtn=new JButton("确定");
  CancelBtn=new JButton("取消");
(科教范文网 Lw.nsEAc.com编辑整理)

  ClearBtn.addActionListener(this);
  YesBtn.addActionListener(this);
  CancelBtn.addActionListener(this);
  panel2.add(ClearBtn);
  panel2.add(YesBtn);
  panel2.add(CancelBtn);
  c.add(panel2,BorderLayout.SOUTH);
 }

public ReturnInfo()
 {
  super("修改书籍还入信息");
  c=getContentPane();
  c.setLayout(new BorderLayout());
  c.add(TipLabel,BorderLayout.NORTH);
  ReturnedBookStudentLabel=new JLabel("还书者姓名",JLabel.CENTER);
  ReturnedBookNameLabel=new JLabel("书名",JLabel.CENTER);
  ReturnedDateLabel=new JLabel("还书日期",JLabel.CENTER);
  
  ReturnedBookStudentTextField=new JTextField(15);
  ReturnedBookNameTextField=new JTextField(15);
  ReturnedDateTextField=new JTextField(15);
  
  panel1=new JPanel();
  panel1.setLayout(new GridLayout(4,2));
  panel1.add(ReturnedBookStudentLabel);
  panel1.add(ReturnedBookStudentTextField);
  panel1.add(ReturnedBookNameLabel);
  panel1.add(ReturnedBookNameTextField);
  panel1.add(ReturnedDateLabel);
  panel1.add(ReturnedDateTextField);
 

上一篇:单片机课程设计报告(一)信息工程毕业论文 下一篇:没有了