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

正文內(nèi)容

java課程設(shè)計(jì)---基于java的在線評(píng)測(cè)系統(tǒng)的設(shè)計(jì)與開發(fā)-文庫吧

2025-01-03 12:49 本頁面


【正文】 就是這樣,需要壓力,和打擊,然后才能真正的長(zhǎng)大,懂事啊!本次課設(shè)也讓我明白了毅力與心態(tài)的重要性,無論如何時(shí)候都不要輕易放棄,也不要讓懶惰纏上自己,要抓住任何一個(gè)機(jī)會(huì)去學(xué)習(xí)更多知識(shí)。更要多實(shí)踐,它對(duì)知識(shí)的收獲將是更深刻的。10答辯設(shè)計(jì)過程及答辯回答問題記載: 答:封裝,繼承,多態(tài) ,面向?qū)ο螅看穑?帶格式圖片名)獲得圖片路徑url,然后通過new ImageIcon(url)創(chuàng)建對(duì)象,然后將該對(duì)象添加到所需的控件上。3怎樣讓在一個(gè)類中創(chuàng)建的對(duì)象在其他類中可用并且該對(duì)象只在內(nèi)存中存在一個(gè)?答:可通過依賴注入方法實(shí)現(xiàn),例如可用get(),set()方法來實(shí)現(xiàn)引用類型參數(shù)傳遞。 指導(dǎo)教師評(píng)語: 成績(jī)?cè)u(píng)定: 簽名: 2013 年 6 月 30 日 附錄1源代碼Main類代碼:package 。import 。import 。import 。import 。import 。import 。import 。import 。 //主類public class Main { public static void main(String[] args) { ClientContext clientContext=new ClientContext()。 //歡迎界面 WeleWindow weleWindow=new WeleWindow()。 //登錄界面 LoginFrame loginFrame=new LoginFrame()。 //菜單界面 MenuFrame menuFrame=new MenuFrame()。 //考試界面 ExamFrame examFrame=new ExamFrame()。 ExamService examService=new ExamService()。 EntityContext entityContext=new EntityContext()。 //考試規(guī)則界面 RuleFrame ruleFrame=new RuleFrame()。 (ruleFrame)。 (clientContext)。 (clientContext)。 (clientContext)。 (entityContext)。 (weleWindow)。 (loginFrame)。 (menuFrame)。 (examFrame)。 (examService)。 ()。 }}ClientContext類代碼:package 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。public class ClientContext { //歡迎界面 WeleWindow weleWindow。//null //登錄界面 LoginFrame loginFrame。 //菜單界面 MenuFrame menuFrame。 //考試界面 ExamFrame examFrame。 ExamService examService。 QuestionInfo curQuestion。 JTextField idTextField。 JPasswordField pwdField。 User loginUser。 boolean finish=false。 int score。 //構(gòu)造方法 public ClientContext(){} public ClientContext(WeleWindow weleWindow, LoginFrame loginFrame, MenuFrame menuFrame, ExamFrame examFrame) { = weleWindow。 = loginFrame。 = menuFrame。 = examFrame。 } /** * 開始考試,首先進(jìn)入歡迎界面 和 登錄界面 * */ public void start(){ (true)。 Timer timer=new Timer()。 (new TimerTask() {//延時(shí)兩秒后歡迎界面消失,登錄界面出現(xiàn) public void run() { (false)。 (true)。 } }, 2000)。 } public void login(){ User u。 try { int userId=()。 String userPwd=()。 u = (userId,userPwd)。 loginUser=u。//登錄成功 將登錄的用戶賦值給loginUser (false)。 (())。 (true)。 } catch (IdOrPwdException e1) { (loginFrame, ())。 } catch (NumberFormatException e2) { (loginFrame, 請(qǐng)輸入整數(shù) 編號(hào)!)。 } catch (Exception e3){ (loginFrame, 系統(tǒng)錯(cuò)誤!請(qǐng)聯(lián)系系統(tǒng)管理員!)。 } } public void startExam(){ // if(finish){ (menuFrame, 考試已結(jié)束!)。 return。//返回 結(jié)束當(dāng)前方法體 } ()。 curQuestion=().get(0)。 (loginUser,curQuestion)。 startTime()。//點(diǎn)擊開始考試按鈕,同時(shí)進(jìn)行到計(jì)時(shí) (false)。 (true)。 } public void startTime(){ long timeLimit=1000*60*1。 long startTime=()。 final long endTime=startTime+timeLimit。 final Timer timer=new Timer()。 (new TimerTask() { public void run() { long time=()。 long h=time/1000/60/60。 long m=time/1000/60。 long s=time/1000%60。 String timeStr=h+:+m+:+s。 (timeStr)。 } }, 0,1000)。 (new TimerTask() { @Override public void run() { ()。 (examFrame, 考試時(shí)間到!)。 send()。//考試時(shí)間到,自動(dòng)保存 } },new Date(endTime))。//到指定Date時(shí)間執(zhí)行run方法 } public void next(){ saveUserAnswer()。//點(diǎn)擊下一題按鈕,保存答案 QuestionInfo nextQuestion=(()+1)。 curQuestion=nextQuestion。 (loginUser, curQuestion)。 } public void pre(){ saveUserAnswer()。//點(diǎn)擊上一題,保存答案 QuestionInfo preQuestion=(()1)。 curQuestion=preQuestion。 (loginUser, curQuestion)。//更新面板內(nèi)容 } public void send(){ saveUserAnswer()。 score=()。 (examFrame, 分?jǐn)?shù): +score)。 (false)。 (true)。 //考試已結(jié)束的狀態(tài) finish=true。 } public void saveUserAnswer(){ int curIndex=()。 ListInteger userAnswer=()。 (curIndex,userAnswer)。 } public void getScore(){ if(!finish){ (menuFrame, 考試尚未開啟!)。 return。 } (menuFrame, 分?jǐn)?shù): +score)。 } public void examFrameExit(){ (false)。 } public WeleWindow getWeleWindow() { return weleWindow。 } public void setWeleWindow(WeleWindow weleWindow) { = weleWindow。 } public LoginFrame getLoginFrame() { return loginFrame。 } public void setLoginFrame(LoginFrame loginFrame) { = loginFrame。 } public MenuFrame getMenuFrame() { return menuFrame。 } public void setMenuFrame(MenuFrame menuFrame) { = menuFrame。 } public ExamFrame getExamFrame() { return examFrame。 } public void setExamFrame(ExamFrame examFrame) { = examFrame。 } public ExamService getExamService() { return examService。 } public void setExamService(ExamService examService) { = examService。 } public void menuFrameexit() { (false)。 } public void cancel() { (null)。 (null)。 } public JTextField getIdTextField() { return idTextField。 } public void setIdTextField(JTextField idTextField) { = idTextField。 } public JPasswordField getPwdField() { return pwdField。 } public void setPwdField(JPasswordField pwdField) { = pwdField。 }}WeleWindow類代碼:package 。import
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1