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

正文內(nèi)容

java課程設(shè)計(jì)---基于java的在線評測系統(tǒng)的設(shè)計(jì)與開發(fā)-wenkub.com

2024-11-13 23:06 本頁面
   

【正文】 } public IdOrPwdException(String message) { super(message)。 } public String getEmail() { return 。 } public String getPwd() { return pwd。 } public int getId() { return id。 = name。 String pwd。 } return questionStr。 ListString options=()。 } public ListInteger getUserAnswer() { return userAnswer。 } 44 public Question getQ() { return q。 int index。 } } QuestionInfo 類代碼: package 。 } 43 public void setAnswer(ListInteger answer) { = answer。 } public void setScore(int score) { = score。 } public void setContent(String content) { = content。 int level。 public class Question { // int index。 } public JTextArea getJ() { return j。 (q)。 j=new JTextArea(tfasdha)。 //(menuFrame, line)。 } try{ str=str+line+\n+\n。 try { br = new BufferedReader( new InputStreamReader( new FileInputStream(questionTxt)))。 Dimension d=()。 centerFrame()。 int height=200。 public class RuleFrame extends JFrame{ 40 RuleFrame ruleFrame。 import 。 import 。 import 。 User user=(1002)。 ((), u1)。 } /** public static void main(String[] args) { MapInteger, User users= new HashMapInteger, User()。 } public MapInteger, User getUsers() { return users。//將題庫中答案以“ /” 分割成單獨(dú)元素 ListInteger answer=new ArrayListInteger()。 (answer)。//需要完成 Question類 (content)。 (optionB)。//A String optionB=()。 String content=()。 } } public Question parseQuestion(String line,BufferedReader br) throws IOException{ //line answer=2/3,score=5,level=5 String[] lineDatas=([,][az]+=)。 }else{ //如果 level 在 map中不存在 ListQuestion value =new ArrayListQuestion()。 } Question q=parseQuestion(line,br)。 BufferedReader br。 User u=new User(txtId, txtName, txtPwd, txtPhone, txtEmail)。 String txtName=lines[1]。// 0 登錄成功 1 查無此人 2 密碼錯(cuò)誤 String line。 } public void initUser(){ //把 加載到 users集合中 File userTxt=new File()。 36 public class EntityContext { MapInteger, User users= new HashMapInteger, User()。 import 。 import 。 } public ListQuestionInfo getPaper() { return paper。 } } return score。 ()。 QuestionInfo qi=new QuestionInfo(q, index++)。 //每個(gè)級別隨機(jī)取兩題 for (int i = 0。 for (int level = 1。 // (q)。 34 } if(().equals(userPwd)){ //登錄成功 return u。 ListQuestionInfo paper。 import 。 import 。 } public RuleFrame getRuleFrame() { return ruleFrame。 (()/2, 33 ()/2)。 ()。 JButton exitBtn=new JButton(離開 , icon)。 ()。 JButton ruleBtn=new JButton(考試規(guī)則 , icon)。 ()。 32 JButton scoreBtn=new JButton(分?jǐn)?shù) , icon)。 ()。 JButton startBtn=new JButton(開始 , icon)。 (createExitBtn())。 } //創(chuàng)建中間面板“下” 部分的四個(gè)按鈕 (開始、分?jǐn)?shù)、考試規(guī)則、離開 ) 面板 public JPanel createBtnsPane(){ JPanel p=new JPanel(new FlowLayout())。 URL url=()。 (,userInfoLab)。 (, new JLabel(達(dá)內(nèi)科技 如有雷同,純屬巧合 ,))。 //給窗體設(shè)置主面板 (createContentPane())。 setDefaultCloseOperation()。 //構(gòu)造方法 public MenuFrame(){ //調(diào)用初始化方法 init(),完成窗體的初始化 (給窗體設(shè)置相關(guān)屬性 ) init()。 int height=350。 import 。 import 。 import 。 } public ClientContext getClientContext() { return clientContext。 29 Dimension d=()。 (loginBtn)。 (new ActionListener() { Override public void actionPerformed(ActionEvent e) { (idTextField)。 JButton loginBtn=new JButton(登錄 )。 pwdField=new JPasswordField()。 (,idTextField)。 return p。 return p。 (,createCenterPane())。 } //創(chuàng)建主面板 public JPanel createContentPane(){ JPanel p = new JPanel(new BorderLayout())。 } //方法 //給窗體初始化 public void init(){ setTitle(title)。 ClientContext clientContext。 import 。 import .*。 } public void centerWindow(){ Toolkit tk=()。 ImageIcon icon=new ImageIcon(url)。 centerWindow()。 26 public class WeleWindow extends JWindow{ int width=430。 import 。 } } WeleWindow類代碼: package 。 } public JTextField getIdTextField() { return idTextField。 } 25 public void setExamService(ExamService examService) { = examService。 } public void setMenuFrame(MenuFrame menuFrame) { = menuFrame。 } public void setWeleWindow(WeleWindow weleWindow) { = weleWindow。 return。 } public void saveUserAnswer(){ int curIndex=()。 (examFrame, 分?jǐn)?shù) : +score)。 curQuestion=preQuestion。 curQuestion=nextQuestion。 send()。 (timeStr)。 long h=time/1000/60/60。 long startTime=()。 startTime()。 return。 } catch (IdOrPwdException e1) { 22 (loginFrame, ())。 loginUser=u。 } public void login(){ User u。 Timer timer=new Timer()。 = loginFrame。 User loginUser。 ExamService examService。 public class ClientContext { //歡迎界面 WeleWindow weleWindow。 import 。 import 。 import 。 (examFrame)。 (entityContext)。 (ruleFrame)。 //考試界面 ExamFrame examFrame=new ExamFrame()。 //主類 public class Main { public static void main(String[] args) { ClientContext clientContext=new ClientContext()。 import 。 import 。更要多實(shí)踐,它對知識的收獲將是更深刻的。 ( 2)發(fā)現(xiàn)登錄見面的取消按鈕無作用。 (new WindowAdapter() { Override public void windowClosing(WindowEvent e) { int val=(null, 確定離開 ?)。登錄界面與前臺邏輯 處理截圖如圖 24 圖 2 登錄界面 9 圖 3 編號輸入不合法 圖 4 密碼錯(cuò)誤 3 創(chuàng)建一個(gè) MunuFrame 的類,實(shí)現(xiàn)菜單面板功能的實(shí)現(xiàn),能實(shí)現(xiàn)更新用戶信息即將登錄成功的用戶信息顯示到當(dāng)前界面, 開始考試 , 查看分?jǐn)?shù)( 點(diǎn)擊“分?jǐn)?shù)”,若還未開始,提示“考試未開啟”,若已完成 考試,顯示分?jǐn)?shù)結(jié)
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1