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

正文內(nèi)容

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

2025-01-15 12:49 本頁面
   

【正文】 } 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。 } public Question getQ() { return q。 int index。 }}QuestionInfo類代碼:package 。 } 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{ 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。//將題庫中答案以“/”分割成單獨元素 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 密碼錯誤 String line。 } public void initUser(){ // 加載到users集合中 File userTxt=new File()。public class EntityContext { MapInteger, User users= new HashMapInteger, User()。import 。import 。 } public ListQuestionInfo getPaper() { return paper。 } } return score。 ()。 QuestionInfo qi=new QuestionInfo(q, index++)。 //每個級別隨機取兩題 for (int i = 0。 for (int level = 1。// (q)。 } if(().equals(userPwd)){ //登錄成功 return u。 ListQuestionInfo paper。import 。import 。 } public RuleFrame getRuleFrame() { return ruleFrame。 (()/2, ()/2)。 ()。 JButton exitBtn=new JButton(離開, icon)。 ()。 JButton ruleBtn=new JButton(考試規(guī)則, icon)。 ()。 JButton scoreBtn=new JButton(分數(shù), icon)。 ()。 JButton startBtn=new JButton(開始, icon)。 (createExitBtn())。 } //創(chuàng)建中間面板“下” 部分的四個按鈕(開始、分數(shù)、考試規(guī)則、離開) 面板 public JPanel createBtnsPane(){ JPanel p=new JPanel(new FlowLayout())。 URL url=()。 (,userInfoLab)。 (, new JLabel(達內(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。 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()。public class WeleWindow extends JWindow{ int width=430。import 。 }}WeleWindow類代碼:package 。 } public JTextField getIdTextField() { return idTextField。 } 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, 分數(shù): +score)。 curQuestion=preQuestion。 curQuestion=nextQuestion。 send()。 (timeStr)。 long h=time/1000/60/60。 long startTime=()。 startTime()。 return。 } catch (IdOrPwdException e1) { (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 。更要多實踐,它對知識的收獲將是更深刻的。(2)發(fā)現(xiàn)登錄見面的取消按鈕無作用。 (new WindowAdapter() { Override public void windowClosing(WindowEvent e) { int val=(null, 確定離開?)。登錄界面與前臺邏輯處理截圖如圖24 圖2 登錄界面圖3 編號輸入不合法圖4 密碼錯誤 3創(chuàng)建一個MunuFrame的類,實現(xiàn)菜單面板功能的實
點擊復制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1