學(xué)生成績(jī)管理系統(tǒng)源碼JAVA(學(xué)生成績(jī)管理系統(tǒng)源碼C語(yǔ)言)
今天給各位分享學(xué)生成績(jī)管理系統(tǒng)源碼JAVA的知識(shí),其中也會(huì)對(duì)學(xué)生成績(jī)管理系統(tǒng)源碼C語(yǔ)言進(jìn)行解釋,如果能碰巧解決你現(xiàn)在面臨的問題,別忘了關(guān)注本站,現(xiàn)在開始吧!
本文目錄一覽:
- 1、用java做一個(gè)學(xué)生成績(jī)管理系統(tǒng)需要哪些技術(shù)?
- 2、求一個(gè)用java寫的學(xué)生成績(jī)管理信息系統(tǒng)的源代碼,要求有界面,能實(shí)現(xiàn)
- 3、JAVA程序設(shè)計(jì) 學(xué)生成績(jī)管理系統(tǒng)(數(shù)據(jù)庫(kù)版)
- 4、求用Java編寫的學(xué)生成績(jī)管理系統(tǒng)的完整代碼
- 5、java學(xué)生成績(jī)管理系統(tǒng)
- 6、學(xué)生成績(jī)管理系統(tǒng)源代碼 SQL+JAVA
用java做一個(gè)學(xué)生成績(jī)管理系統(tǒng)需要哪些技術(shù)?
用java做一個(gè)學(xué)生成績(jī)管理系統(tǒng),可以用到如下技術(shù):
后臺(tái):SSH框架,不用框架的話,單純地用JSP + Servlet也可以。
前臺(tái):html + css + js + jquery
數(shù)據(jù)庫(kù):掌握SQL語(yǔ)言的編寫,數(shù)據(jù)庫(kù)的連接。復(fù)雜的項(xiàng)目還需要用到存儲(chǔ)過程。
Java是一種可以撰寫跨平臺(tái)應(yīng)用軟件的面向?qū)ο蟮某绦蛟O(shè)計(jì)語(yǔ)言。Java 技術(shù)具有卓越的通用性、高
效性、平臺(tái)移植性和安全性,廣泛應(yīng)用于PC、數(shù)據(jù)中心、游戲控制臺(tái)、科學(xué)超級(jí)計(jì)算機(jī)、移動(dòng)電話
和互聯(lián)網(wǎng),同時(shí)擁有全球最大的開發(fā)者專業(yè)社群。
Java由四方面組成:
1、Java編程語(yǔ)言,即語(yǔ)法。
2、Java文件格式,即各種文件夾、文件的后綴。
3、Java虛擬機(jī)(JVM),即處理*.class文件的解釋器。
4、Java應(yīng)用程序接口(Java API)。
求一個(gè)用java寫的學(xué)生成績(jī)管理信息系統(tǒng)的源代碼,要求有界面,能實(shí)現(xiàn)
以下方法實(shí)現(xiàn)了用戶界面登陸
import java.awt.*;
import java.awt.event.*;
public class DengLuJieMian extends Frame implements ActionListener
{
Label username=new Label("用戶名:");//使用文本創(chuàng)建一個(gè)用戶名標(biāo)簽
TextField t1=new TextField();//創(chuàng)建一個(gè)文本框?qū)ο?/p>
Label password=new Label("密碼:");//創(chuàng)建一個(gè)密碼標(biāo)簽
TextField t2=new TextField();
Button b1=new Button("登陸");//創(chuàng)建登陸按鈕
Button b2=new Button("取消");//創(chuàng)建取消按鈕
public DengLuJieMian()
{
this.setTitle("學(xué)生信息管理系統(tǒng)");//設(shè)置窗口標(biāo)題
this.setLayout(null);//設(shè)置窗口布局管理器
username.setBounds(50,40,60,20);//設(shè)置姓名標(biāo)簽的初始位置
this.add(username);// 將姓名標(biāo)簽組件添加到容器
t1.setBounds(120,40,80,20);// 設(shè)置文本框的初始位置
this.add(t1);// 將文本框組件添加到容器
password.setBounds(50,100,60,20);//密碼標(biāo)簽的初始位置
this.add(password);//將密碼標(biāo)簽組件添加到容器
t2.setBounds(120,100,80,20);//設(shè)置密碼標(biāo)簽的初始位置
this.add(t2);//將密碼標(biāo)簽組件添加到容器
b1.setBounds(50,150,60,20);//設(shè)置登陸按鈕的初始位置
this.add(b1);//將登陸按鈕組件添加到容器
b2.setBounds(120,150,60,20);//設(shè)置取消按鈕的初始位置
this.add(b2);// 將取消按鈕組件添加到容器
b1.addActionListener(this);//給登陸按鈕添加監(jiān)聽器
b2.addActionListener(this);// 給取消按鈕添加監(jiān)聽器
this.setVisible(true);//設(shè)置窗口的可見性
this.setSize(300,200);//設(shè)置窗口的大小
addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
System.exit(0);
}
});//通過內(nèi)部類重寫關(guān)閉窗體的方法
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==b1)//處理登陸事件
{
String name=t1.getText();
String pass=t2.getText();
if(name!=nullpass.equals("000123"))//判斷語(yǔ)句
{
new StudentJieMian();
}
}
}
public static void main(String args[])//主函數(shù)
{
new DengLuJieMian();
}
}
以下方法實(shí)現(xiàn)了學(xué)生界面設(shè)計(jì)
import java.awt.*;
import java.awt.event.*;
class StudentJieMian extends Frame implements ActionListener
{
MenuBar m=new MenuBar();//創(chuàng)建菜單欄
Menu m1=new Menu("信息");//創(chuàng)建菜單“信息”
MenuItem m11=new MenuItem("插入");//創(chuàng)建“插入”的菜單項(xiàng)
MenuItem m12=new MenuItem("查詢");
Menu m2=new Menu("成績(jī)");//創(chuàng)建菜單“成績(jī)”
MenuItem m21=new MenuItem("查詢");
public StudentJieMian()
{
this.setTitle("學(xué)生界面");//設(shè)置窗口標(biāo)題
this.setLayout(new CardLayout());//設(shè)置窗口布局管理器
this.setMenuBar(m);//將菜單欄組件添加到容器
m.add(m1);//將信息菜單放入菜單欄
m.add(m2);
m1.add(m11);//將“插入”菜單項(xiàng)添加到“信息”菜單
m1.add(m12); //將“查詢”菜單項(xiàng)添加到“信息”菜單
m2.add(m21); //將“查詢”菜單項(xiàng)添加到“成績(jī)”菜單
m11.addActionListener(this); //給“插入”菜單項(xiàng)添加監(jiān)聽器
m12.addActionListener(this); //給“查詢”菜單項(xiàng)添加監(jiān)聽器
m21.addActionListener(this); //給“查詢”菜單項(xiàng)添加監(jiān)聽器
this.setVisible(true); //設(shè)置窗口的可見性
this.setSize(300,200); //設(shè)置窗口的大小
addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
System.exit(0);//關(guān)閉窗口
}
});
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==m11) //處理“添加信息”事件
{
new AddStudent();
}
if(e.getSource()==m12) //處理“查詢信息”事件
{
new SelectStudent();
}
if(e.getSource()==m21) //處理“查詢成績(jī)”事件
{
new ChengJiStudent();
}
}
public static void main(String args[])
{ new StudentJieMian(); //創(chuàng)建一個(gè)對(duì)象 }
JAVA程序設(shè)計(jì) 學(xué)生成績(jī)管理系統(tǒng)(數(shù)據(jù)庫(kù)版)
那個(gè)不好意思,我來當(dāng)壞人吧,沒人會(huì)鳥你的,這世界好人沒人想的那么多,最簡(jiǎn)單的自己在百度搜一個(gè),但是一般數(shù)據(jù)庫(kù)或者jdk版本會(huì)不兼容,還有你的懸賞太少了,根本沒有人會(huì)來回答的,我建議你還自己堆起來吧,這個(gè)不難,只是堆代碼而已,現(xiàn)在eclipse都可以拖放swing部件了
求用Java編寫的學(xué)生成績(jī)管理系統(tǒng)的完整代碼
package?jdbcproj;
import?java.sql.*;
import?java.awt.BorderLayout;
import?java.awt.EventQueue;
import?javax.swing.JFrame;
import?javax.swing.JPanel;
import?javax.swing.border.EmptyBorder;
import?javax.swing.JLabel;
import?javax.swing.JOptionPane;
import?javax.swing.JTextField;
import?javax.swing.JButton;
import?java.awt.event.ActionListener;
import?java.sql.Connection;
import?java.sql.PreparedStatement;
import?java.sql.SQLException;
import?java.awt.event.ActionEvent;
public?class?MainFrame?extends?JFrame?{
private?JPanel?contentPane;
private?JTextField?txtname;
private?JTextField?txtpassword;
/**
?*?Launch?the?application.
?*/
public?static?void?main(String[]?args)?{
EventQueue.invokeLater(new?Runnable()?{
public?void?run()?{
try?{
MainFrame?frame?=?new?MainFrame();
frame.setVisible(true);
}?catch?(Exception?e)?{
e.printStackTrace();
}
}
});
}
/**
?*?Create?the?frame.
?*/
public?MainFrame()?{
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100,?100,?661,?399);
contentPane?=?new?JPanel();
contentPane.setBorder(new?EmptyBorder(5,?5,?5,?5));
setContentPane(contentPane);
contentPane.setLayout(null);
JLabel?lblNewLabel?=?new?JLabel("\u7528\u6237\u540D");
lblNewLabel.setBounds(114,?51,?72,?18);
contentPane.add(lblNewLabel);
JLabel?lblNewLabel_1?=?new?JLabel("\u5BC6\u7801");
lblNewLabel_1.setBounds(114,?106,?72,?18);
contentPane.add(lblNewLabel_1);
txtname?=?new?JTextField();
txtname.setBounds(261,?48,?86,?24);
contentPane.add(txtname);
txtname.setColumns(10);
txtpassword?=?new?JTextField();
txtpassword.setBounds(261,?103,?86,?24);
contentPane.add(txtpassword);
txtpassword.setColumns(10);
JButton?btnadd?=?new?JButton("\u589E\u52A0");
btnadd.addActionListener(new?ActionListener()?{
public?void?actionPerformed(ActionEvent?e)?{
if(txtname.getText().equals("")||txtpassword.getText().equals(""))
{
JOptionPane.showMessageDialog(getContentPane(),?"用戶名和密碼不能為空","提示信息框",JOptionPane.WARNING_MESSAGE);
}
else{
Users?u=new?Users();
u.setPwd(txtpassword.getText());
u.setUsername(txtname.getText());
UserDAO?usdo=new?UserDAO();
usdo.addUser(u);
}
}
});
btnadd.setBounds(45,?205,?113,?27);
contentPane.add(btnadd);
JButton?btndelete?=?new?JButton("\u5220\u9664");
btndelete.addActionListener(new?ActionListener()?{
public?void?actionPerformed(ActionEvent?arg0)?{
if(txtname.getText().equals(""))
{
JOptionPane.showMessageDialog(getContentPane(),?"用戶名不能為空","提示信息框",JOptionPane.WARNING_MESSAGE);
}
else{
UserDAO?usdo=new?UserDAO();
usdo.delUser(txtname.getText())
}
}
});
btndelete.setBounds(172,?205,?113,?27);
contentPane.add(btndelete);
JButton?btnupdate?=?new?JButton("\u4FEE\u6539");
btnupdate.addActionListener(new?ActionListener()?{
public?void?actionPerformed(ActionEvent?e)?{
if(txtname.getText().equals("")||txtpassword.getText().equals(""))
{
JOptionPane.showMessageDialog(getContentPane(),?"用戶名和密碼不能為空","提示信息框",JOptionPane.WARNING_MESSAGE);
}
else{
Users?u=new?Users();
u.setPwd(txtpassword.getText());
u.setUsername(txtname.getText());
UserDAO?usdo=new?UserDAO();
usdo.updateUser(u)
}
}
});
btnupdate.setBounds(300,?205,?113,?27);
contentPane.add(btnupdate);
JButton?btnfind?=?new?JButton("\u67E5\u8BE2");
btnfind.addActionListener(new?ActionListener()?{
public?void?actionPerformed(ActionEvent?e)?{
if(txtname.getText().equals(""))
{
JOptionPane.showMessageDialog(getContentPane(),?"用戶名不能為空","提示信息框",JOptionPane.WARNING_MESSAGE);
}
else{
Users?u=new?Users();
UserDAO?usdo=new?UserDAO();
u=usdo.findUser(txtname.getText(),?txtpassword.getText());
if(u!=null){
JOptionPane.showMessageDialog(getContentPane(),?"該用戶存在!","提示信息框",JOptionPane.WARNING_MESSAGE);
}
else{
JOptionPane.showMessageDialog(getContentPane(),?"該用戶不存在!","提示信息框",JOptionPane.WARNING_MESSAGE);
}
}
}
});
btnfind.setBounds(427,?205,?113,?27);
contentPane.add(btnfind);
//記得要寫這個(gè)
setVisible(true);
}
}
java學(xué)生成績(jī)管理系統(tǒng)
Java學(xué)生成績(jī)管理系統(tǒng)源代碼:
import Java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.StringTokenizer;
/*
* Created on 2005-1-11
*/
/**
* @author 讓煒
* @since 1.0
*
* TODO 學(xué)生成績(jī)治理系統(tǒng)
* 通過學(xué)號(hào)查找,修改,刪除數(shù)據(jù)
*
*/
public class LittleProgram
{
static boolean isDelete = true;
static boolean isFind = true;
public static void main(String [] args)//主方法,程序從這里開始運(yùn)行
throws IOException,NumberNotFoundException
{
int choice=-1;
do{
LittleProgram lp = new LittleProgram();
System.out.println();
System.out.println("\t####################################");
System.out.println();
System.out.println("\t\t Java學(xué)生成績(jī)治理系統(tǒng)1.1");
System.out.println("\t\t請(qǐng)用學(xué)號(hào)查找,修改,刪除數(shù)據(jù)");
System.out.println();
System.out.println("\t####################################\n");
System.out.print("1.增加數(shù)據(jù):\n"+
"2.查找數(shù)據(jù):\n"+
"3.刪除數(shù)據(jù):\n"+
"4.清除所有數(shù)據(jù):\n"+
"5.把數(shù)據(jù)全部打印到屏幕\n"+
"6.把成績(jī)按學(xué)號(hào)排序\n"+
"7.修改數(shù)據(jù)\n"+
"8.統(tǒng)計(jì)已記錄成績(jī)學(xué)生數(shù)\n"+
"9.關(guān)于作者\(yùn)n"+
"0.退出程序.\n" +
"輸入:");
BufferedReader in = //從終
new BufferedReader( //端接
new InputStreamReader(System.in));//收數(shù)
String inputLine = in.readLine(); //字選
choice= Integer.valueOf(inputLine).intValue();//項(xiàng);
switch(choice)
{
case 1: {//1.增加數(shù)據(jù)
String str = lp.inputData();
lp.addData(str);
System.out.println("增加數(shù)據(jù)成功.");
timeOut(1);
}break;
case 2: {//2.查找數(shù)據(jù)
long find = 0;
資料引用:
學(xué)生成績(jī)管理系統(tǒng)源代碼 SQL+JAVA
這個(gè)東西,雖說很簡(jiǎn)單,但是也會(huì)費(fèi)點(diǎn)時(shí)間,還是建議花錢買吧,這樣要,不會(huì)有幾個(gè)人會(huì)專門去給你寫的,除非他之前寫過類似的課程設(shè)計(jì)。
關(guān)于學(xué)生成績(jī)管理系統(tǒng)源碼JAVA和學(xué)生成績(jī)管理系統(tǒng)源碼C語(yǔ)言的介紹到此就結(jié)束了,不知道你從中找到你需要的信息了嗎 ?如果你還想了解更多這方面的信息,記得收藏關(guān)注本站。
掃描二維碼推送至手機(jī)訪問。
版權(quán)聲明:本文由飛速云SEO網(wǎng)絡(luò)優(yōu)化推廣發(fā)布,如需轉(zhuǎn)載請(qǐng)注明出處。