日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢(xún)
選擇下列產(chǎn)品馬上在線(xiàn)溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問(wèn)題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷(xiāo)解決方案
java實(shí)現(xiàn)科研信息管理系統(tǒng)-創(chuàng)新互聯(lián)

一、前言

創(chuàng)新互聯(lián)建站專(zhuān)注于潁州企業(yè)網(wǎng)站建設(shè),成都響應(yīng)式網(wǎng)站建設(shè)公司,商城系統(tǒng)網(wǎng)站開(kāi)發(fā)。潁州網(wǎng)站建設(shè)公司,為潁州等地區(qū)提供建站服務(wù)。全流程按需求定制網(wǎng)站,專(zhuān)業(yè)設(shè)計(jì),全程項(xiàng)目跟蹤,創(chuàng)新互聯(lián)建站專(zhuān)業(yè)和態(tài)度為您提供的服務(wù)

本學(xué)期學(xué)習(xí)了JAVA語(yǔ)言,在學(xué)期的結(jié)束,寫(xiě)一個(gè)有操作界面,與數(shù)據(jù)庫(kù)關(guān)聯(lián)的管理系統(tǒng),用來(lái)鞏固自己本學(xué)習(xí)所學(xué)的知識(shí)。
用到的知識(shí):JAVA基礎(chǔ),JAVA界面設(shè)計(jì)(GUI),Oracle數(shù)據(jù)庫(kù)(需要掌握數(shù)據(jù)庫(kù)的基本操作語(yǔ)句),鏈接數(shù)據(jù)庫(kù)。
使用的開(kāi)發(fā)工具:MyEclipse Professional 2014


二、設(shè)計(jì)


我們管理的屬性有:項(xiàng)目編號(hào),項(xiàng)目名稱(chēng),參與人員,負(fù)責(zé)人,項(xiàng)目開(kāi)始時(shí)間,結(jié)束時(shí)間??蒲许?xiàng)目系統(tǒng)主要有四個(gè)功能,對(duì)科研項(xiàng)目的增加、刪除、修改、查詢(xún)。以及為增加系統(tǒng)安全性所設(shè)計(jì)的登陸模式。


2.1 增加:向數(shù)據(jù)庫(kù)的表中增加科研項(xiàng)目的所有信息

2.2 查詢(xún):通過(guò)具有唯一性的項(xiàng)目編號(hào)查找該項(xiàng)目的所有信息

2.3 修改:根據(jù)項(xiàng)目編號(hào)選中要修改的項(xiàng)目,并重新輸入項(xiàng)目信息進(jìn)行修改

java實(shí)現(xiàn)科研信息管理系統(tǒng)

2.4 刪除:通過(guò)具有唯一性的項(xiàng)目編號(hào)刪除對(duì)應(yīng)項(xiàng)目的所有信息

三、窗體源碼

3.1 登錄界面

package 科研信息管理系統(tǒng);

import java.awt.*;
import java.awt.event.*;

import javax.swing.*;

public class LoginWindows extends Frame implements WindowListener,ActionListener 
{
 public Label lgLabel; //用戶(hù)名標(biāo)簽
 public Label pwdLabel; //密碼標(biāo)簽
 public TextField lgText; //用戶(hù)名文本框
 public TextField pwdText; //密碼文本框
 public Button lgBt;   //登錄按鈕
 public Button quitBt;  //退出按鈕

  public LoginWindows()
  {
   super();
   this.setSize(400, 300);
   this.setTitle("科研信息管理系統(tǒng)");
   this.setLayout(null);

   lgLabel=new Label();
   lgLabel.setText("登錄賬號(hào):");
   lgLabel.setSize(60, 30);
   lgLabel.setLocation(70,70);

   pwdLabel=new Label();
   pwdLabel.setText("密  碼:");
   pwdLabel.setSize(60,30);
   pwdLabel.setLocation(70, 150);

   lgText=new TextField();
   lgText.setSize(180, 30);
   lgText.setLocation(140, 70);

   pwdText=new TextField();
   pwdText.setSize(180,30);
   pwdText.setLocation(140, 150);

   lgBt=new Button();
   lgBt.setLabel("登錄");
   lgBt.setSize(60,30);
   lgBt.setLocation(120, 220);

   quitBt=new Button();
   quitBt.setLabel("退出");
   quitBt.setSize(60,30);
   quitBt.setLocation(220,220);
   quitBt.addActionListener(this);
   lgBt.addActionListener(this);
   this.addWindowListener(this);

   this.add(lgLabel);
   this.add(pwdLabel);
   this.add(lgText);
   this.add(pwdText);
   this.add(lgBt);
   this.add(quitBt);
   this.setVisible(true);

  }
  public static void main(String args[])
  {
   LoginWindows main=new LoginWindows();

  }
 @Override
 public void actionPerformed(ActionEvent e) {

  Button bt=(Button) e.getSource();
  if(bt.getLabel().equals("退出"))
  {
   System.exit(0);
  }
  else {
  if ((lgText.getText().equals(""))||(pwdText.getText().equals(""))) 
   {
    JOptionPane.showMessageDialog(this,"賬號(hào)或密碼為空");
   }
   else
   {
     if ((lgText.getText().equals("admin"))&&(pwdText.getText().equals("111"))) 
   //if((lgText.getText().equals(""))||(pwdText.getText().equals("")))
    {
     this.setVisible(false);
    // Sqlwindow sql=new Sqlwindow();
     WindowsView w=new WindowsView();
     w.SciencePro();

    }
    else {
     JOptionPane.showMessageDialog(this, "沒(méi)有權(quán)限");
    }
   }}}






 @Override
 public void windowOpened(WindowEvent e) {
  // TODO Auto-generated method busb

 }

 @Override
 public void windowClosing(WindowEvent e) {
  // TODO Auto-generated method busb
  System.exit(0);
 }

 @Override
 public void windowClosed(WindowEvent e) {
  // TODO Auto-generated method busb

 }

 @Override
 public void windowIconified(WindowEvent e) {
  // TODO Auto-generated method busb

 }

 @Override
 public void windowDeiconified(WindowEvent e) {
  // TODO Auto-generated method busb

 }

 @Override
 public void windowActivated(WindowEvent e) {
  // TODO Auto-generated method busb

 }

 @Override
 public void windowDeactivated(WindowEvent e) {
  // TODO Auto-generated method busb

 }
}


本文題目:java實(shí)現(xiàn)科研信息管理系統(tǒng)-創(chuàng)新互聯(lián)
文章源于:http://www.dlmjj.cn/article/dheijc.html