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-24 12:49本頁面
  

【正文】 d actionPerformed(ActionEvent e) { (true)。 ImageIcon icon=new ImageIcon(url)。 return scoreBtn。 ()。 (new ActionListener() { public void actionPerformed(ActionEvent e) { ()。 ImageIcon icon=new ImageIcon(url)。 return startBtn。 ()。 (new ActionListener() { public void actionPerformed(ActionEvent e) { ()。 ImageIcon icon=new ImageIcon(url)。 return p。 (createRuleBtn())。 (createStartBtn())。 return imageLabel。 ImageIcon icon=new ImageIcon(url)。 } //創(chuàng)建中間面板 “上” 部分的圖片標(biāo)簽 public JLabel createImageLabel(){ JLabel imageLabel=new JLabel()。 (,createBtnsPane())。 userInfoLab=new JLabel(歡迎:XXX 參與無與倫比的賽事!,)。 return p。 (,createCenterPane())。 } //創(chuàng)建主面板(上 中 下) public JPanel createContentPane(){ JPanel p=new JPanel(new BorderLayout())。 } } })。 (new WindowAdapter() { Override public void windowClosing(WindowEvent e) { int val=(null, 確定離開?)。 centerFrame()。 } //方法 //初始化窗體 public void init(){ //給窗體設(shè)置標(biāo)題 (title)。 RuleFrame ruleFrame。 JLabel userInfoLab。 int width=580。import .*。import 。import 。import 。import 。import 。 } public void setClientContext(ClientContext clientContext) { = clientContext。 } public String getUserPwd(){ return new String(())。 (()/2, ()/2)。 } public void centerFrame(){ Toolkit tk=()。 (cancelBtn)。 } })。 (pwdField)。 JButton cancelBtn=new JButton(取消)。 (new ActionListener() { Override public void actionPerformed(ActionEvent e) { ()。 } //創(chuàng)建主面板的底部面板 public JPanel createBottomPane(){ JPanel p = new JPanel()。 (,pwdField)。 (,new JLabel(密碼:))。 return p。 idTextField=new JTextField()。 } //創(chuàng)建編號(hào)面板 public JPanel createIdPane(){ JPanel p = new JPanel(new BorderLayout())。 (createPwdPane())。 } //創(chuàng)建編號(hào)、密碼面板 public JPanel createIdPwdPane(){ JPanel p = new JPanel(new GridLayout(2,1,0,10))。 (,createIdPwdPane())。 return p。 (,new JLabel(登錄系統(tǒng),))。//主面板 (new EmptyBorder(8,8,8,8))。 setContentPane(createContentPane())。//給窗體設(shè)置標(biāo)題 setSize(width, height)。 //構(gòu)造方法(初始化對(duì)象) public LoginFrame(){ //給該窗體初始化 init()。 JTextField idTextField。 int height=200。/** * 描述一個(gè)登錄窗體對(duì)象 * */public class LoginFrame extends JFrame{ //屬性 String title=登錄界面。import 。import 。 }}LoginFrame類代碼:package 。 Dimension screen=()。 return p。 (new LineBorder())。 URL url=()。 setContentPane(createContentPane())。 } public void init(){ setSize(width, height)。 int height=300。import 。import 。import 。import 。 } public void setPwdField(JPasswordField pwdField) { = pwdField。 } public void setIdTextField(JTextField idTextField) { = idTextField。 (null)。 } public void menuFrameexit() { (false)。 } public ExamService getExamService() { return examService。 } public ExamFrame getExamFrame() { return examFrame。 } public MenuFrame getMenuFrame() { return menuFrame。 } public LoginFrame getLoginFrame() { return loginFrame。 } public WeleWindow getWeleWindow() { return weleWindow。 } (menuFrame, 分?jǐn)?shù): +score)。 } public void getScore(){ if(!finish){ (menuFrame, 考試尚未開啟!)。 ListInteger userAnswer=()。 //考試已結(jié)束的狀態(tài) finish=true。 (false)。 score=()。 (loginUser, curQuestion)。//點(diǎn)擊上一題,保存答案 QuestionInfo preQuestion=(()1)。 (loginUser, curQuestion)。//點(diǎn)擊下一題按鈕,保存答案 QuestionInfo nextQuestion=(()+1)。//考試時(shí)間到,自動(dòng)保存 } },new Date(endTime))。 (examFrame, 考試時(shí)間到!)。 } }, 0,1000)。 String timeStr=h+:+m+:+s。 long m=time/1000/60。 (new TimerTask() { public void run() { long time=()。 final long endTime=startTime+timeLimit。 } public void startTime(){ long timeLimit=1000*60*1。//點(diǎn)擊開始考試按鈕,同時(shí)進(jìn)行到計(jì)時(shí) (false)。 (loginUser,curQuestion)。//返回 結(jié)束當(dāng)前方法體 } ()。 } } public void startExam(){ // if(finish){ (menuFrame, 考試已結(jié)束!)。 } catch (NumberFormatException e2) { (loginFrame, 請(qǐng)輸入整數(shù) 編號(hào)!)。 (true)。//登錄成功 將登錄的用戶賦值給loginUser (false)。 u = (userId,userPwd)。 try { int userId=()。 } }, 2000)。 (new TimerTask() {//延時(shí)兩秒后歡迎界面消失,登錄界面出現(xiàn) public void run() { (false)。 } /** * 開始考試,首先進(jìn)入歡迎界面 和 登錄界面 * */ public void start(){ (true)。 = menuFrame。 //構(gòu)造方法 public ClientContext(){} public ClientContext(WeleWindow weleWindow, LoginFrame loginFrame, MenuFrame menuFrame, ExamFrame examFrame) { = weleWindow。 boolean finish=false。 JPasswordField pwdField。 QuestionInfo curQuestion。 //考試界面 ExamFrame examFrame。//null //登錄界面 LoginFrame loginFrame。import 。import 。import 。import 。import 。import 。 }}ClientContext類代碼:package 。 (examService)。 (menuFrame)。 (weleWindow)。 (clientContext)。 (clientContext)。 //考試規(guī)則界面 RuleFrame ruleFrame=new RuleFrame()。 ExamService examService=new ExamService()。 //菜單界面 MenuFrame menuFrame=new MenuFrame()。 //歡迎界面 WeleWindow weleWindow=new WeleWindow()。import 。import 。import 。import 。 指導(dǎo)教師評(píng)語: 成績?cè)u(píng)定: 簽名:
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1