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

正文內(nèi)容

java課程設(shè)計(jì)---基于java的在線評(píng)測(cè)系統(tǒng)的設(shè)計(jì)與開(kāi)發(fā)(編輯修改稿)

2024-12-23 23:06 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 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 。 import 。 import 。 import 。 import 。 import .*。 import 。 26 public class WeleWindow extends JWindow{ int width=430。 int height=300。 public WeleWindow(){ // init()。 } public void init(){ setSize(width, height)。 centerWindow()。 setContentPane(createContentPane())。 } public JPanel createContentPane(){ JPanel p=new JPanel(new BorderLayout())。 URL url=()。 ImageIcon icon=new ImageIcon(url)。 (new LineBorder())。 (,new JLabel(icon))。 return p。 } public void centerWindow(){ Toolkit tk=()。 Dimension screen=()。 (()/2, ()/2)。 } } LoginFrame類代碼 : package 。 import .*。 import 。 import .*。 import 。 import 。 /** * 描述一個(gè)登錄窗體對(duì)象 * */ public class LoginFrame extends JFrame{ //屬性 27 String title=登錄界面 。 int width=300。 int height=200。 ClientContext clientContext。 JTextField idTextField。 JPasswordField pwdField。 //構(gòu)造方法 (初始化對(duì)象 ) public LoginFrame(){ //給該窗體初始化 init()。 } //方法 //給窗體初始化 public void init(){ setTitle(title)。//給窗體設(shè)置標(biāo)題 setSize(width, height)。 centerFrame()。 setContentPane(createContentPane())。 } //創(chuàng)建主面板 public JPanel createContentPane(){ JPanel p = new JPanel(new BorderLayout())。//主面板 (new EmptyBorder(8,8,8,8))。//設(shè)置內(nèi)邊距 //給主面板添加組件 (,createBottomPane())。 (,new JLabel(登錄系統(tǒng) ,))。 (,createCenterPane())。 return p。 } //創(chuàng)建主面板的中間面板 public JPanel createCenterPane(){ JPanel p = new JPanel(new BorderLayout())。 (,createIdPwdPane())。 return p。 } //創(chuàng)建編號(hào)、密碼面板 public JPanel createIdPwdPane(){ JPanel p = new JPanel(new GridLayout(2,1,0,10))。 (createIdPane())。 (createPwdPane())。 return p。 } 28 //創(chuàng)建編號(hào)面板 public JPanel createIdPane(){ JPanel p = new JPanel(new BorderLayout())。 (,new JLabel(編號(hào): ))。 idTextField=new JTextField()。 (,idTextField)。 return p。 } //創(chuàng)建密碼面板 public JPanel createPwdPane(){ JPanel p = new JPanel(new BorderLayout())。 (,new JLabel(密碼: ))。 pwdField=new JPasswordField()。 (,pwdField)。 return p。 } //創(chuàng)建主面板的底部面板 public JPanel createBottomPane(){ JPanel p = new JPanel()。 JButton loginBtn=new JButton(登錄 )。 (new ActionListener() { @Override public void actionPerformed(ActionEvent e) { ()。 } })。 JButton cancelBtn=new JButton(取消 )。 (new ActionListener() { @Override public void actionPerformed(ActionEvent e) { (idTextField)。 (pwdField)。 ()。 } })。 (loginBtn)。 (cancelBtn)。 return p。 } public void centerFrame(){ Toolkit tk=()。 29 Dimension d=()。 (()/2, ()/2)。 } public int getUserId(){ return (())。 } public String getUserPwd(){ return new String(())。 } public ClientContext getClientContext() { return clientContext。 } public void setClientContext(ClientContext clientContext) { = clientContext。 } } MenuFrame 類代碼: package 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import .*。 public class MenuFrame extends JFrame{ //屬性 30 String title=選擇菜單界面 。 int width=580。 int height=350。 JLabel userInfoLab。 ClientContext clientContext。 RuleFrame ruleFrame。 //構(gòu)造方法 public MenuFrame(){ //調(diào)用初始化方法 init(),完成窗體的初始化 (給窗體設(shè)置相關(guān)屬性 ) init()。 } //方法 //初始化窗體 public void init(){ //給窗體設(shè)置標(biāo)題 (title)。 //給窗體設(shè)置初始大小 (寬、高 ) (width, height)。 centerFrame()。 setDefaultCloseOperation()。 (new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { int val=(null, 確定離開(kāi) ?)。 if(val==){ (0)。 } } })。 //給窗體設(shè)置主面板 (createContentPane())。 } //創(chuàng)建主面板 (上 中 下 ) public JPanel createContentPane(){ JPanel p=new JPanel(new BorderLayout())。 (,createImageLabel())。 (,createCenterPane())。 (, new JLabel(達(dá)內(nèi)科技 如有雷同,純屬巧合 ,))。 return p。 } //創(chuàng)建主面板的中間面板 (上 下 ) 31 public JPanel createCenterPane(){ JPanel p=new JPanel(new BorderLayout())。 userInfoLab=new JLabel(歡迎: XXX 參與無(wú)與倫比的賽事! ,)。 (,userInfoLab)。 (,createBtnsPane())。 return p。 } //創(chuàng)建中間面板 “上” 部分的圖片標(biāo)簽 public JLabel createImageLabel(){ JLabel imageLabel=new JLabel()。 URL url=()。 ImageIcon icon=new ImageIcon(url)。 (icon)。 return imageLabel。 } //創(chuàng)建中間面板“下” 部分的四個(gè)按鈕 (開(kāi)始、分?jǐn)?shù)、考試規(guī)則、離開(kāi) ) 面板 public JPanel createBtnsPane(){ JPanel p=new JPanel(new FlowLayout())。 (createStartBtn())。 (createScoreBtn())。 (createRuleBtn())。 (createExitBtn())。 return p。 } //創(chuàng)建帶圖片和文本的開(kāi)始按鈕 public JButton createStartBtn(){ URL url=()。 ImageIcon icon=new ImageIcon(url)。 JButton startBtn=new JButton(開(kāi)始 , icon)。 (new ActionListener() { public void actionPerformed(ActionEvent e) { ()。 } })。 ()。 ()。 return startBtn。 } //創(chuàng)建帶圖片和文本的分?jǐn)?shù)按鈕 public JButton createScoreBtn(){ URL url=()。 ImageIcon icon=new ImageIcon(url)。 32 JButton scoreBtn=new JButton(分?jǐn)?shù) , icon)。 (new ActionListener() { public void actionPerformed(ActionEvent e) { ()。 } })。 ()。 ()。 return scoreBtn。 } //創(chuàng)
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1