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

正文內(nèi)容

java商品房銷售中的客戶信息管理系統(tǒng)課程設(shè)計(jì)(文件)

 

【正文】 eteMenuItem=new JMenuItem(刪除畢業(yè)生信息)。//注冊(cè)事件 (new DeleteActionListener())。 (deleteMenuItem)。 } class ExitActionListener implements ActionListener{ public void actionPerformed(ActionEvent e) { int result = (null, 真的要推出嗎?, 提示信息, , , null)。 } } class AddActionListener implements ActionListener{ public void actionPerformed(ActionEvent e){ new StudentAddUI()。 } } public static void main(String[] args) { new TeacherMainUI()。InformationQueryUI類源代碼:package ui。import .*。import 。 JButton retrievalButton。 int selectedNum。 public InformationQueryUI(){ container = ()。 (學(xué)號(hào))。 (系別)。 topPanel = new JPanel()。 (fieldComboBox)。 (new RetrievalActionListener())。 bottomPanel = new JPanel()。 (true)。 case 2: fieldSelected = sname。 case 4: fieldSelected = sex。 } String key = ()。 (學(xué)號(hào))。 (系別)。 i++) { Vector row = new Vector()。 (())。 } DefaultTableModel model = new DefaultTableModel(content, head)。 }}執(zhí)行截圖如下:(7)ScoreQueryUI類:此類為學(xué)生成績(jī)查詢界面類,在此界面有一個(gè)標(biāo)簽,一個(gè)文本框,一個(gè)按鈕。import .*。import .*。public class ScoreQueryUI extends JFrame{ JLabel selectionLabel。 Container container。 JScrollPane bookScrollPane。 keywordText = new JTextField(, 20)。 (() / 2, ())。 (, topPanel)。 (, bookScrollPane)。 (600, 450)。 ArrayList lis = (key)。 (學(xué)科)。 for (int i = 0。 (())。 (())。 repaint()。當(dāng)單擊“添加”按鈕時(shí),通過(guò)注冊(cè)事件,在內(nèi)部類的actionPerformed()方法中,獲取五個(gè)文本框中的信息,并轉(zhuǎn)換成相應(yīng)的基本數(shù)據(jù)類型,通過(guò)StudentDao類的addStudent()方法,將數(shù)據(jù)寫(xiě)入數(shù)據(jù)庫(kù)的student表中。import .*。 JTextField t1, t2, t3, t4, t5。 l3 = new JLabel(性別)。 t2 = new JTextField(24)。 bt1 = new JButton(添加)。 (100, 100, 80, 30)。 (100, 140, 80, 30)。 (100, 180, 80, 30)。 (100, 220, 80, 30)。 (100, 260, 80, 30)。 (140, 300, 80, 30)。 (new AddListener())。 (增添新生錄入界面)。 } })。 String sex = ()。 if (issuccess) { (null, insert success, 提示信息, )。 ()。 } } public static void main(String[] args) { new StudentAddUI()。若刪除成功,提示成功,否則提示失敗。import .*。 JButton bt1, bt2。 bt2 = new JButton(退出)。 (l1)。 (bt1)。 (new CloseListener())。 (400, 400)。// 匿名類結(jié)束 } class DeleteListener implements ActionListener{ public void actionPerformed(ActionEvent arg0){ StudentDao oneStudentDao = new StudentDao()。 ()。 }}執(zhí)行截圖如下:(10)ScoreAddUI類:此類為添加學(xué)生成績(jī)信息界面類,在此界面中有五個(gè)標(biāo)簽,五個(gè)文本框,還有兩個(gè)按鈕“添加”“退出”。ScoreAddUI類源代碼:package ui。import 。 public ScoreAddUI(){ l1 = new JLabel(學(xué)號(hào))。 l5 = new JLabel(學(xué)分)。 t4 = new JTextField(20)。 JPanel p1 = new JPanel()。 (170, 100, 100, 30)。 (170, 140, 200, 30)。 (170, 180, 200, 30)。 (170, 220, 200, 30)。 (170, 260, 60, 30)。 (280, 300, 80, 30)。 (200, 200, (), ())。 (true)。 (添加成績(jī)信息錄入界面)。 (new AddListener())。 (140, 300, 80, 30)。 (100, 260, 80, 30)。 (100, 220, 80, 30)。 (100, 180, 80, 30)。 (100, 140, 80, 30)。 (100, 100, 80, 30)。 bt1 = new JButton(添加)。 t2 = new JTextField(20)。 l3 = new JLabel(學(xué)科)。 JTextField t1, t2, t3, t4, t5。import .*。當(dāng)單擊“添加”按鈕時(shí),通過(guò)注冊(cè)事件,在內(nèi)部類的actionPerformed()方法中,獲取五個(gè)文本框中的信息,作為實(shí)參,并轉(zhuǎn)換成相應(yīng)的基本數(shù)據(jù)類型,通過(guò)ScoreDao類的addScore()方法,將數(shù)據(jù)寫(xiě)入數(shù)據(jù)庫(kù)的score表中。 } } } class CloseListener implements ActionListener{ public void actionPerformed(ActionEvent e) { dispose()。 boolean issuccess = (sname)。 (new WindowAdapter() {// 匿名類開(kāi)始 public void windowClosing(WindowEvent e) // 把退出窗口的語(yǔ)句寫(xiě)在本方法中 { dispose()。 (p1)。 (bt2)。 (t1)。 (null)。 t1 = new JTextField(20)。public class StudentDeleteUI extends JFrame{ JLabel l1。import .*。根據(jù)標(biāo)簽提示,在文本框中輸入要?jiǎng)h除成績(jī)記錄的學(xué)生姓名。 } else { (null, insert failure, 提示信息, )。 ()。 String dept = ()。 int num = (())。 (true)。 (200, 200, (), ())。 (280, 300, 80, 30)。 (170, 260, 60, 30)。 (170, 220, 200, 30)。 (170, 180, 200, 30)。 (170, 140, 200, 30)。 (170, 100, 100, 30)。 JPanel p1 = new JPanel()。 t4 = new JTextField(24)。 l5 = new JLabel(系別)。 public StudentAddUI() { l1 = new JLabel(學(xué)號(hào))。import 。StudentAddUI類源代碼:package ui。 }}執(zhí)行截圖如下:(8)StudentAddUI類:此類為添加學(xué)生基本信息界面類,在此界面中有五個(gè)標(biāo)簽,五個(gè)文本框,還有兩個(gè)按鈕“添加”“退出”。 } DefaultTableModel model = new DefaultTableModel(content, head)。 (())。 i++) { Vector row = new Vector()。 (學(xué)分)。 (學(xué)號(hào))。 } class RetrievalActionListener implements ActionListener{ public void actionPerformed(ActionEvent arg0) { String key = ()。 (, bottomPanel)。//給檢索按鈕注冊(cè)事件 table = new JTable()。 (keywordText)。 topPanel = new JPanel()。 public ScoreQueryUI(){ container = ()。 int selectedNum。 JButton retrievalButton。import 。import .*。再把查詢結(jié)構(gòu)通過(guò)Vector對(duì)象放入ArrayList類的對(duì)象lis中,從而使檢索結(jié)果顯示在表格中。 repaint()。 (())。 (())。 for (int i = 0。 (年齡)。 ArrayList lis = (fieldSelected, key)。 case 5: fieldSelected = dept。 case 3: fieldSelected = age。//獲取文本信息 } } } class RetrievalActionListener implements ActionListener{ public void actionPerformed(ActionEvent event){ switch (selectedNum) { case 1: fieldSelected = num。 (學(xué)生信息檢索查詢系統(tǒng))。 bookScrollPane = new JScrollPane(table)。 (retrievalButton)。 (() / 2, ())。 // 下拉列表框注冊(cè)事件注冊(cè)事件 keywordText = new JTextField(, 20)。 (年齡)。 fieldComboBox = new JComboBox()。 JScrollPane bookScrollPane。 Container container。 JComboBox fieldComboBox。import .*。import .*。點(diǎn)擊下拉列表框時(shí),可以選擇要檢索的方式,即要檢索的屬性,單擊時(shí),通過(guò)注冊(cè)事件,在內(nèi)部類的方法里獲取所點(diǎn)擊的屬性名稱,保存在一個(gè)String型的變量里。 } } class AddScoreActionListener implements ActionListener{ public void actionPerformed(ActionEvent e) { new ScoreAddUI()。 else if (result == 1) { } } } class QueryScoreActionListener implements ActionListener{ public void actionPerformed(ActionEvent e) { new ScoreQueryUI()。 (deleteScoreMenuItem)。//注冊(cè)事件 (new DeleteScore
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1