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

正文內(nèi)容

java課程設(shè)計(jì)--掃雷游戲報(bào)告-資料下載頁

2025-01-18 20:52本頁面
  

【正文】 n confirmButton。 private JButton cancelButton。 private static LevelInfo level。 public CustomDialog(Frame frame, LevelInfo levelInfo) { super(frame,自定義雷區(qū),true)。 getContentPane().set Layout(null)。 JLabel tempLabel = new JLabel(高度:)。 (10,10,30,20)。 heightField = new JTextField(+())。 (50,10,40,20)。 getContentPane().add(tempLabel,null)。 getContentPane().add(heightField,null)。 tempLabel = new JLabel(寬度:)。 (10,40,30,20)。 widthField = new JTextField(+())。 (50,40,40,20)。 getContentPane().add(tempLabel,null)。 getContentPane().add(widthField,null)。 tempLabel = new JLabel(雷數(shù):)。 (10,70,30,20)。 mineField = new JTextField(+())。 (50,70,40,20)。 getContentPane().add(tempLabel,null)。 getContentPane().add(mineField,null)。 confirmButton = new JButton(確定)。 (this)。 (100,10,60,25)。 getContentPane().add(confirmButton,null)。 cancelButton = new JButton(取消)。 (this)。 (100,45,60,25)。 getContentPane().add(cancelButton,null)。 setSize(180,137)。 setLocationRelativeTo(frame)。 setResizable(false)。 show()。 } public void actionPerformed(ActionEvent e) { level = null。 if(()==confirmButton) { int x = (())。 int y = (())。 int m = (())。 level = new LevelInfo(x,y,m)。 } dispose()。 } public static LevelInfo getUserLevel(JFrame frame, LevelInfo levelInfo) { CustomDialog dialog = new CustomDialog(frame, levelInfo)。 return level。 }} 掃雷英雄榜界面代碼public class LogDialog extends JDialog implements ActionListener { private LevelLog levelLog[]。 private JTextArea logArea。 private JButton resetButton。 private JButton confirmButton。 public LogDialog(JFrame frame, LevelLog log[]) { super(frame, 掃雷英雄榜, true)。 getContentPane().set Layout(null)。 levelLog = log。 logArea = new JTextArea()。 (false)。 (())。 (10,10,160,60)。 getContentPane().add(logArea, null)。 resetButton = new JButton(重新計(jì)分)。 (10,70,90,25)。 (this)。 getContentPane().add(resetButton, null)。 setTextArea()。 confirmButton = new JButton(確定)。 (105,70,60,25)。 (this)。 getContentPane().add(confirmButton, null)。 setSize(180,140)。 setLocationRelativeTo(frame)。 setResizable(false)。 show()。 } private void setTextArea() { (初級: + levelLog[0].toString() + 中級: + levelLog[1].toString() + 高級: + levelLog[2].toString())。 } public void actionPerformed(ActionEvent e) { if(()==resetButton) { for(int i=0。i3。i++) { levelLog[i].setDefault()。 } setTextArea()。 } else { dispose()。 } }}24
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1