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

正文內(nèi)容

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

2025-04-25 06:04 上一頁面

下一頁面
 

【正文】 eteMenuItem=new JMenuItem(刪除畢業(yè)生信息)。//注冊事件 (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é)號)。 (系別)。 topPanel = new JPanel()。 (fieldComboBox)。 (new RetrievalActionListener())。 bottomPanel = new JPanel()。 (true)。 case 2: fieldSelected = sname。 case 4: fieldSelected = sex。 } String key = ()。 (學(xué)號)。 (系別)。 i++) { Vector row = new Vector()。 (())。 } DefaultTableModel model = new DefaultTableModel(content, head)。 }}執(zhí)行截圖如下:(7)ScoreQueryUI類:此類為學(xué)生成績查詢界面類,在此界面有一個標簽,一個文本框,一個按鈕。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()。當單擊“添加”按鈕時,通過注冊事件,在內(nèi)部類的actionPerformed()方法中,獲取五個文本框中的信息,并轉(zhuǎn)換成相應(yīng)的基本數(shù)據(jù)類型,通過StudentDao類的addStudent()方法,將數(shù)據(jù)寫入數(shù)據(jù)庫的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é)生成績信息界面類,在此界面中有五個標簽,五個文本框,還有兩個按鈕“添加”“退出”。ScoreAddUI類源代碼:package ui。import 。 public ScoreAddUI(){ l1 = new JLabel(學(xué)號)。 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)。 (添加成績信息錄入界面)。 (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 .*。當單擊“添加”按鈕時,通過注冊事件,在內(nèi)部類的actionPerformed()方法中,獲取五個文本框中的信息,作為實參,并轉(zhuǎn)換成相應(yīng)的基本數(shù)據(jù)類型,通過ScoreDao類的addScore()方法,將數(shù)據(jù)寫入數(shù)據(jù)庫的score表中。 } } } class CloseListener implements ActionListener{ public void actionPerformed(ActionEvent e) { dispose()。 boolean issuccess = (sname)。 (new WindowAdapter() {// 匿名類開始 public void windowClosing(WindowEvent e) // 把退出窗口的語句寫在本方法中 { dispose()。 (p1)。 (bt2)。 (t1)。 (null)。 t1 = new JTextField(20)。public class StudentDeleteUI extends JFrame{ JLabel l1。import .*。根據(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é)號)。import 。StudentAddUI類源代碼:package ui。 }}執(zhí)行截圖如下:(8)StudentAddUI類:此類為添加學(xué)生基本信息界面類,在此界面中有五個標簽,五個文本框,還有兩個按鈕“添加”“退出”。 } DefaultTableModel model = new DefaultTableModel(content, head)。 (())。 i++) { Vector row = new Vector()。 (學(xué)分)。 (學(xué)號)。 } class RetrievalActionListener implements ActionListener{ public void actionPerformed(ActionEvent arg0) { String key = ()。 (, bottomPanel)。//給檢索按鈕注冊事件 table = new JTable()。 (keywordText)。 topPanel = new JPanel()。 public ScoreQueryUI(){ container = ()。 int selectedNum。 JButton retrievalButton。import 。import .*。再把查詢結(jié)構(gòu)通過Vector對象放入ArrayList類的對象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, ())。 // 下拉列表框注冊事件注冊事件 keywordText = new JTextField(, 20)。 (年齡)。 fieldComboBox = new JComboBox()。 JScrollPane bookScrollPane。 Container container。 JComboBox fieldComboBox。import .*。import .*。點擊下拉列表框時,可以選擇要檢索的方式,即要檢索的屬性,單擊時,通過注冊事件,在內(nèi)部類的方法里獲取所點擊的屬性名稱,保存在一個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)。//注冊事件 (new DeleteScore
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1