欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

宿舍管理系統(tǒng)代碼java 宿舍管理系統(tǒng)代碼

簡(jiǎn)單的用JAVA實(shí)現(xiàn)學(xué)生宿舍管理系統(tǒng)(網(wǎng)頁(yè)顯示就行)

哇,不是吧,現(xiàn)在都用數(shù)據(jù)庫(kù),否則你的數(shù)據(jù)是死的呀。我這里直接有個(gè)我們自己做的一個(gè)公司管理系統(tǒng)項(xiàng)目,里面增刪查改的功能都有,你有郵箱我發(fā)給你,改改就一樣了。

創(chuàng)新互聯(lián)服務(wù)項(xiàng)目包括華鎣網(wǎng)站建設(shè)、華鎣網(wǎng)站制作、華鎣網(wǎng)頁(yè)制作以及華鎣網(wǎng)絡(luò)營(yíng)銷(xiāo)策劃等。多年來(lái),我們專(zhuān)注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術(shù)優(yōu)勢(shì)、行業(yè)經(jīng)驗(yàn)、深度合作伙伴關(guān)系等,向廣大中小型企業(yè)、政府機(jī)構(gòu)等提供互聯(lián)網(wǎng)行業(yè)的解決方案,華鎣網(wǎng)站推廣取得了明顯的社會(huì)效益與經(jīng)濟(jì)效益。目前,我們服務(wù)的客戶以成都為中心已經(jīng)輻射到華鎣省份的部分城市,未來(lái)相信會(huì)繼續(xù)擴(kuò)大服務(wù)區(qū)域并繼續(xù)獲得客戶的支持與信任!

java語(yǔ)言編寫(xiě)的學(xué)生宿舍管理系統(tǒng)

也不是難啊!關(guān)鍵是麻煩啊!你看看你要的差不多就一個(gè)項(xiàng)目了啊!還要建表啊!用數(shù)據(jù)庫(kù)啊!我這有一個(gè)圖書(shū)管理系統(tǒng)啊!是jcreat做的啊!你那個(gè)就是實(shí)現(xiàn)了增刪改差啊!基本功能,不過(guò)麻煩啊!你要是局部的不是先幫助還行啊!

用Java編寫(xiě)宿舍管理系統(tǒng)的代碼

我給講概思路:1:第步:設(shè)計(jì)數(shù)據(jù)庫(kù)般像種型宿舍管理系統(tǒng)選用mysql作數(shù)據(jù)庫(kù)設(shè)計(jì)表包括表字段名字段及表間關(guān)系2:第二布:確認(rèn)使用技術(shù)作java選用Springmvc作mvc框架畢竟比較靈簡(jiǎn)單Spring必須用管理事務(wù)Hibernate作臺(tái)數(shù)據(jù)庫(kù)管理框架jsp作頁(yè)面表現(xiàn)層程序比較健壯擴(kuò)展起比較便3:第二步基礎(chǔ)接建立Bean類(lèi)比類(lèi)、宿舍類(lèi)等等映射數(shù)據(jù)庫(kù)表字段編寫(xiě)Service層、Dao層等等建立數(shù)據(jù)處理邏輯4:實(shí)現(xiàn)表現(xiàn)層寫(xiě)jsp頁(yè)面想前臺(tái)展示內(nèi)容寫(xiě)jsp面選用技術(shù)juqery,js考慮用戶體驗(yàn)用ajax實(shí)現(xiàn)異步刷新交互5:前臺(tái)相互通信用juint進(jìn)行集測(cè)試看看數(shù)據(jù)否按照邏輯準(zhǔn)確顯示期測(cè)試等等嫌麻煩采用ssh框架直接用jsp+servlet寫(xiě)比較簡(jiǎn)單原理概差層沒(méi)清晰明

求一份Java 學(xué)生宿舍管理系統(tǒng),有源碼,求大神,先謝啦

import java.awt.BorderLayout;

import java.awt.CardLayout;

import java.awt.Container;

import java.awt.Font;

import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

import javax.swing.Icon;

import javax.swing.ImageIcon;

import javax.swing.JButton;

import javax.swing.JFrame;

import javax.swing.JLabel;

import javax.swing.JMenu;

import javax.swing.JMenuBar;

import javax.swing.JMenuItem;

import javax.swing.JPanel;

import javax.swing.JToolBar;

import javax.swing.SwingConstants;

public class MainFrame extends JFrame implements ActionListener{

InsertPanel ip = null;

SelectPanel sp = null;

JPanel pframe;

JButton jb1,jb2,jb3;

JMenuItem jm11,jm21,jm22,jm23,jm31,jm32,jm41,jm42;

CardLayout clayout;

public MainFrame(String s){

super(s);

JMenuBar mb = new JMenuBar();

this.setJMenuBar(mb);

JMenu m1 = new JMenu("系統(tǒng)");

JMenu m2 = new JMenu("基本信息");

JMenu m3 = new JMenu("成績(jī)");

JMenu m4 = new JMenu("獎(jiǎng)懲");

mb.add(m1);

mb.add(m2);

mb.add(m3);

mb.add(m4);

jm11 = new JMenuItem("退出系統(tǒng)");

jm21 = new JMenuItem("輸入");

jm22 = new JMenuItem("查詢");

jm23 = new JMenuItem("更改");

jm31 = new JMenuItem("輸入成績(jī)");

jm32 = new JMenuItem("查詢成績(jī)");

jm41 = new JMenuItem("獎(jiǎng)勵(lì)");

jm42 = new JMenuItem("處分");

m1.add(jm11);

m2.add(jm21);

m2.add(jm22);

m2.add(jm23);

m3.add(jm31);

m3.add(jm32);

m4.add(jm41);

m4.add(jm42);

Icon i1 = new ImageIcon();

Icon i2 = new ImageIcon();

Icon i3 = new ImageIcon();

jb1 = new JButton(i1);

jb1.setToolTipText("輸入");

jb2 = new JButton(i2);

jb2.setToolTipText("查詢");

jb3 = new JButton(i3);

jb3.setToolTipText("退出");

JToolBar tb = new JToolBar("系統(tǒng)工具");

tb.add(jb1);

tb.add(jb2);

tb.add(jb3);

add(tb,BorderLayout.NORTH);

jm11.addActionListener(this);

jm21.addActionListener(this);

jm22.addActionListener(this);

jb1.addActionListener(this);

jb2.addActionListener(this);

jb3.addActionListener(this);

clayout = new CardLayout();

pframe = new JPanel(clayout);

add(pframe);

JPanel mainp = new JPanel(new BorderLayout());

JLabel mainl = new JLabel("學(xué)生信息管理平臺(tái)",SwingConstants.CENTER);

mainl.setFont(new Font("serif",Font.BOLD,30));

mainp.add(mainl);

pframe.add(mainp,"main");

clayout.show(pframe, "main");

}

public void actionPerformed(ActionEvent e){

if(e.getSource() == jm21 || e.getSource() == jb1){

if(ip == null){

ip= new InsertPanel();

pframe.add(ip,"insert");

}

clayout.show(pframe, "insert");

this.setTitle("輸入學(xué)生信息");

}

else if(e.getSource() == jm22 || e.getSource() == jb2){

if(sp == null){

sp= new SelectPanel();

pframe.add(sp,"select");

}

clayout.show(pframe, "select");

this.setTitle("查詢學(xué)生信息");

}

else if(e.getSource() == jm11 || e.getSource() == jb3){

System.exit(0);

}

}

}

第二個(gè):

import javax.swing.JFrame;

public class MainTest {

public static void main(String [] args){

MainFrame f = new MainFrame("學(xué)生信息管理平臺(tái)");

f.setSize(400,300);

f.setLocation(350,250);

f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

f.setVisible(true);

}

}

第二個(gè):

import java.sql.Connection;

import java.sql.DriverManager;

public class MySQLConnection {

static Connection getCon(){

Connection con = null;

try{

Class.forName("com.mysql.jdbc.Driver");

con = DriverManager.getConnection("jdbc:mysql://localhost/test","root","123");

}

catch(Exception e){

System.out.println("建立數(shù)據(jù)庫(kù)連接遇到異常!");

}

return con;

}

}

第四個(gè):

import java.awt.BorderLayout;

import java.awt.GridLayout;

import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

import javax.swing.JButton;

import javax.swing.JLabel;

import javax.swing.JOptionPane;

import javax.swing.JPanel;

import javax.swing.JTextField;

import javax.swing.SwingConstants;

public class SelectPanel extends JPanel implements ActionListener{

JButton jb;

JTextField jt;

JTextField jt1,jt2,jt3,jt4;

public SelectPanel(){

JLabel jl = new JLabel("請(qǐng)輸入學(xué)號(hào):",SwingConstants.CENTER);

jt = new JTextField();

jb = new JButton("確定");

JPanel jp1 = new JPanel(new GridLayout(1,3));

jp1.add(jl);

jp1.add(jt);

jp1.add(jb);

JLabel j1,j2,j3,j4;

j1 = new JLabel("學(xué)號(hào):",SwingConstants.CENTER);

j2 = new JLabel("姓名:",SwingConstants.CENTER);

j3 = new JLabel("性別:",SwingConstants.CENTER);

j4 = new JLabel("年齡:",SwingConstants.CENTER);

jt1 = new JTextField(6);

jt1.setEditable(false);

jt2 = new JTextField(6);

jt2.setEditable(false);

jt3 = new JTextField(6);

jt3.setEditable(false);

jt4 = new JTextField(6);

jt4.setEditable(false);

JPanel jp2 = new JPanel(new BorderLayout());

JPanel jp3 = new JPanel(new GridLayout(4,2));

jp2.add(new JLabel(""),BorderLayout.NORTH);

jp3.add(j1);

jp3.add(jt1);

jp3.add(j2);

jp3.add(jt2);

jp3.add(j3);

jp3.add(jt3);

jp3.add(j4);

jp3.add(jt4);

jp2.add(jp3);

this.setLayout(new BorderLayout());

add(jp1,BorderLayout.NORTH);

add(jp2);

jb.addActionListener(this);

}

public void actionPerformed(ActionEvent e){

if(e.getSource() == jb){

String stuNo = jt.getText().trim();

Student s = new Student();

boolean b = true;

try{

b = s.selectByStuNo(stuNo);

}

catch(Exception ex){

System.out.println("查詢學(xué)生信息遇到異常!");

}

if(b){

jt1.setText(s.getStuNo());

jt2.setText(s.getName());

jt3.setText(s.getGender());

int a = s.getAge();

Integer i = new Integer(a);

jt4.setText(i.toString());

}

else{

JOptionPane.showMessageDialog(null, "無(wú)此學(xué)生!");

}

}

}

}

新聞名稱(chēng):宿舍管理系統(tǒng)代碼java 宿舍管理系統(tǒng)代碼
URL分享:http://www.chinadenli.net/article16/ddcdigg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站建設(shè)網(wǎng)頁(yè)設(shè)計(jì)公司網(wǎng)站建設(shè)App開(kāi)發(fā)電子商務(wù)網(wǎng)站排名

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

商城網(wǎng)站建設(shè)