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

正文內(nèi)容

java商品房銷(xiāo)售中的客戶(hù)信息管理系統(tǒng)課程設(shè)計(jì)(編輯修改稿)

2025-05-04 06:04 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 d(ActionEvent e){ new TeacherLoginUI()。 dispose()。 } } class StudentLoginActionListener implements ActionListener{ public void actionPerformed(ActionEvent e){ new StudentLoginUI()。 dispose()。 } } public static void main(String[] args) { new LoginUI()。 }}執(zhí)行截圖如下:(2)StudentLoginUI類(lèi):此類(lèi)為學(xué)生登陸界面,在這個(gè)界面上有兩個(gè)文本框,分別輸入學(xué)生姓名和登錄密碼,還有兩個(gè)按鈕,登陸和退出。輸入后,從兩個(gè)文本框中獲取用戶(hù)輸入的內(nèi)容,點(diǎn)擊“登陸”按鈕時(shí),調(diào)用StudentDao類(lèi)中的studentLogin()方法驗(yàn)證是否存在該用戶(hù)。若存在,則創(chuàng)建StudentScoreUI類(lèi)的對(duì)象,即打開(kāi)學(xué)生成績(jī)界面,顯示此登陸學(xué)生的成績(jī)信息,若不存在,則提示密碼錯(cuò)誤。 StudentLoginUI類(lèi)源代碼: package ui。import .*。import .*。import .*。import 。public class StudentLoginUI extends JFrame{ JLabel l1, l2。 JTextField t1。 JPasswordField t2。 JButton bt1, bt2。 Container cp。 public static String st1。 public String st2。 public StudentLoginUI(){ l1 = new JLabel(學(xué)生姓名)。 l2 = new JLabel(密碼)。 t1 = new JTextField(12)。 t2 = new JPasswordField(12)。 bt1 = new JButton(成績(jī)查詢(xún))。 bt2 = new JButton(退出)。 JPanel p1 = new JPanel()。 (null)。 (150, 150, 80, 40)。 (l1)。 (250, 150, 80, 30)。 (t1)。 (150, 190, 80, 40)。 (l2)。 (250, 190, 80, 30)。 (t2)。 (150, 230, 120, 30)。 (bt1)。 (280, 230, 80, 30)。 (bt2)。 (new LoginActionListener())。//注冊(cè)事件 (new ExitActionListener())。//注冊(cè)事件 cp = getContentPane()。 (200, 200, (), ())。 (p1)。 (學(xué)生登錄界面)。 (400, 400)。 (true)。 (new WindowAdapter() { public void windowClosing(WindowEvent e) { (0)。 } })。 } class LoginActionListener implements ActionListener { public void actionPerformed(ActionEvent e) { st1 = ()。 st2 = ()。 StudentDao oneStudentDao = new StudentDao()。 boolean isSuccess = (st1, st2)。 if (isSuccess) { new StudentScoreUI()。 dispose()。 } else (null, 用戶(hù)名密碼錯(cuò)誤, 提示信息, )。 } } class ExitActionListener implements ActionListener { public void actionPerformed(ActionEvent e) { (0)。 } } public static void main(String[] args) { new StudentLoginUI()。 }}執(zhí)行截圖如下:(3)StudentScoreUI類(lèi):此類(lèi)為學(xué)生成績(jī)界面,此類(lèi)中有一個(gè)標(biāo)簽和一個(gè)表格。標(biāo)簽中從StudentLoginUI類(lèi)中獲取學(xué)生登錄時(shí)使用的用戶(hù)名,顯示在標(biāo)簽中以表示以下是某某同學(xué)的成績(jī)信息。表格中為此學(xué)生的成績(jī)。調(diào)用ScoreDao類(lèi)中的queryScore1(),將得到的ArrayList對(duì)象lis放入Vector對(duì)象中,形成表格。StudentScoreUI類(lèi)源代碼:package ui。import .*。import .*。import .*。import .*。import .*。import 。import 。import 。public class StudentScoreUI extends JFrame{ String aa=。 JLabel selectionLabel。 JPanel topPanel。 Container container。 JTable table。 JScrollPane bookScrollPane。 JPanel bottomPanel。 public StudentScoreUI(){ container = ()。 selectionLabel = new JLabel(aa+同學(xué)本學(xué)期成績(jī)?nèi)缦?。 topPanel = new JPanel()。 (new FlowLayout())。 (selectionLabel)。 (, topPanel)。 table = new JTable()。 bookScrollPane = new JScrollPane(table)。 (, bookScrollPane)。 bottomPanel = new JPanel()。 (, bottomPanel)。 (學(xué)生成績(jī)查詢(xún))。 (600, 450)。 (true)。 ScoreDao oneScore=new ScoreDao()。 ArrayList lis = (aa)。 VectorString head = new Vector()。 (學(xué)號(hào))。 (姓名)。 (學(xué)科)。 (成績(jī))。 (學(xué)分)。 VectorVector content = new Vector()。 for (int i = 0。 i ()。 i++) { Vector row = new Vector()。 Score oneScore1 = (Score) (i)。 (())。 (())。 (())。 (())。 (())。 (row)。 } DefaultTableModel model = new DefaultTableModel(content, head)。 (model)。 repaint()。 }}執(zhí)行截圖如下:(4)TeacherLoginUI類(lèi):此類(lèi)為教師登陸界面,在這個(gè)界面上有兩個(gè)文本框,分別輸入教師姓名和登錄密碼,還有兩個(gè)按鈕,登陸和退出。輸入后,從兩個(gè)文本框中獲取用戶(hù)輸入的內(nèi)容,點(diǎn)擊“登陸”按鈕時(shí),調(diào)用TeacherDao類(lèi)中的queryTeacher()方法驗(yàn)證是否存在該用戶(hù)。若存在創(chuàng)建TeacherMainUI類(lèi)的對(duì)象,即打開(kāi)教師主界面,若不存在,則提示密碼錯(cuò)誤。TeacherLoginUI類(lèi)源代碼:package ui。import .*。import .*。import .*。import 。public class TeacherLoginUI extends JFrame { JLabel l1, l2。 JTextField t1。 JPasswordField t2。 JButton bt1, bt2。 Container cp。 public TeacherLoginUI(){ l1 = new JLabel(教師姓名)。 l2 = new JLabel(密碼)。 t1 = new JTextField(12)。 t2 = new JPasswordField(12)。 bt1 = new JButton(登錄)。 bt2 = new JButton(退出)。 JPanel p1 = new JPanel()。 (null)。 (150, 150, 80, 40)。 (l1)。 (250, 150, 80, 30)。 (t1)。 (150, 190, 80, 40)。 (l2)。 (250, 190, 80, 30)。 (t2)。 (150, 230, 80, 30)。 (bt1)。 (250, 230, 80, 30)。 (bt2)。 (new LoginActionListener())。//注冊(cè)事件 (new ExitActionListener())。//注冊(cè)事件 cp = getContentPane()。 (200, 200, (), ())。 (p1)。 (教師登錄界面)。 (400, 400)。 (true)。 (new WindowAdapter() { public void windowClosing(WindowEvent e) { (0)。 } })。 } class LoginActionListener implements ActionListener { public void actionPerformed(ActionEvent e) { String st1 = ()。 String st2 = ()。 TeacherDao oneTeacherDao = new TeacherDao()。 boolean isSuccess = (st1, st2)。 if (isSuccess) { new TeacherMainUI()。 dispose()。 } else (null, 用戶(hù)名密碼錯(cuò)誤, 提示信息, )。 } } class ExitActionListener implements ActionListener { public void actionPerformed(ActionEvent e) { (0)。 } } public static void main(String[] args) { new TeacherLoginUI()。 }}執(zhí)行截圖如下:(5)TeacherMainUI類(lèi):此類(lèi)為教師主界面類(lèi),在此界面上有一個(gè)菜單欄,三個(gè)菜單:文件,查詢(xún),修改。其中“文件”菜單中有“退出”菜單項(xiàng),點(diǎn)擊時(shí)跳出對(duì)話(huà)框問(wèn)是否真的退出,若點(diǎn)擊是,窗口關(guān)閉,若點(diǎn)擊否,回復(fù)原界面?!安樵?xún)”菜單中有“學(xué)生基本信息”和“學(xué)生成績(jī)信息”兩個(gè)菜單項(xiàng):當(dāng)點(diǎn)擊“學(xué)生基本信息”時(shí),通過(guò)注冊(cè)事件,創(chuàng)建InformationQueryUI類(lèi)的對(duì)象,即打開(kāi)查詢(xún)學(xué)生基本信息的窗口,當(dāng)點(diǎn)擊“學(xué)生成績(jī)信息”時(shí),通過(guò)注冊(cè)事件,創(chuàng)建ScoreQueryUI類(lèi)的對(duì)象,即打開(kāi)查詢(xún)學(xué)生成績(jī)信息的窗口。修改菜單中有“增加新生信息”“刪除畢業(yè)生信息”“增加成績(jī)信息”和“刪除成績(jī)信息”四個(gè)菜單項(xiàng),當(dāng)點(diǎn)擊“增加新生信息”時(shí),通過(guò)注冊(cè)事件,創(chuàng)建StudentAddUI類(lèi)的對(duì)象,即打開(kāi)添加學(xué)生基本信息的窗口,當(dāng)點(diǎn)擊“刪除畢業(yè)生信息”時(shí),通過(guò)注冊(cè)事件,創(chuàng)建StudentDeleteUI類(lèi)的對(duì)象,即打開(kāi)刪除學(xué)生基本信息的窗口,當(dāng)點(diǎn)擊“增加成績(jī)信息”時(shí),通過(guò)注冊(cè)事件,創(chuàng)建ScoreAddUI類(lèi)的對(duì)象,即打開(kāi)添加成績(jī)信息的窗口,當(dāng)點(diǎn)擊“刪除成績(jī)信息”時(shí),通過(guò)注冊(cè)事件,創(chuàng)建ScoreDeleteUI類(lèi)的對(duì)象,即打開(kāi)刪除成績(jī)信息的窗口。TeacherMainUI類(lèi)源代碼:package ui。import .*。import .*。import .*。public class TeacherMainUI extends JFrame{Container ctp。 TeacherMainUI(){ ctp = ()。 (歡迎進(jìn)入學(xué)生管理系統(tǒng)!)。 (new BorderLayout())。 JMenuBar menuBar = new JMenuBar()。 buildMainMenu(menuBar)。 (menuBar)。 (100, 100, 400, 300)。 (true)。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1