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

正文內(nèi)容

[工學(xué)]java程序設(shè)計實驗-資料下載頁

2025-01-16 06:09本頁面
  

【正文】 eckboxMenuItem)()).getState()) (choose+((CheckboxMenuItem)()).getLabel())。//將時間小時在文//本框中顯示else (no choose+((CheckboxMenuItem)()).getLabel())。} } class HandleMouse extends MouseAdapter //處理鼠標(biāo)事件類 { MyMenhFrame m_Parent。 HandleMouse(MyMenhFrame mf) { m_Parent=mf。 } public void mouseReleased(MouseEvent e) //鼠標(biāo)按鍵松開事件彈出菜單 {if(())//檢查鼠標(biāo)事件是否是由彈出菜單引發(fā)的((Component)(),(),())。}public static void main(String[] args){ MyMenhFrame mmf=new MyMenhFrame()。 (400,300)。 (true)。}}。⒊使用Dialog實驗消息對話框和一般對話框,設(shè)保存在D:\myjava目錄下。 import .*。import .*。public class TestDialog{ public static void main(String args[ ]) { MyDialogFrame df=new MyDialogFrame()。 }}class MyDialogFrame extends Frameimplements ActionListener,ComponentListener{ Dialog MegDlg,InOutDlg。 Button btn1,btn2,btnY,btnN,btnR。 TextField tf=new TextField(no imformation,45)。 TextField getMeg=new TextField(inout imformation,10)。 MyDialogFrame() { super(use dialog)。 btn1=new Button(隱藏)。 btn2=new Button(詢問)。 btnY=new Button(是)。 btnN=new Button(否)。 btnR=new Button(返回)。 setLayout(new FlowLayout())。 add(tf)。 add(btn1)。 add(btn2)。 (this)。 (new WinAdpt())。//Frame響應(yīng)窗口關(guān)閉事件 (this)。 (this)。 (this)。 (this)。 (this)。 setSize(350,150)。 show()。} public void actionPerformed(ActionEvent e) //實現(xiàn)Action Listener中的方法 { if(()==隱藏) { MegDlg=new Dialog(this, true?,true)。 Panel p1=new Panel()。 (new Label(continue?))。 (Center,p1)。 Panel p2=new Panel()。 (btnY)。 (btnN)。 (South,p2)。 (200,100)。 ()。}else if(()==響應(yīng)){ InOutDlg=new Dialog(this, input the imformation)。 (Center,getMeg)。 (South,btnR)。 (200,100)。 //(new MyDialogFrame())。//addFocusListener(this)。 ()。 } else if(()==是) { ()。 (false)。 } else if(()==否) { ()。 } else if(()==返回) { (()+是對話框的輸入)。 ()。 } }//列舉Component Listener中未重載的方法public void ponentShown(ComponentEvent e) {}public void ponentResized(ComponentEvent e) {}public void ponentMoved(ComponentEvent e) {}public void ponentHidden(ComponentEvent e) //實現(xiàn)ComponentListener中的方法{ (按鈕+((Button)()).getLabel()+獲得了注意的焦點)。} public void fousGained(FocusEvent e) //處理FocusListener中的方法 { (對話框+((Dialog)()).getTitle()+獲得了注意的焦點)。 } public void focusLost(FocusEvent e) {} } class WinAdpt extends WindowAdapter { public void windowClosing(WindowEvent e) //處理關(guān)閉窗口事件 { ((Frame)()).dispose()。(0)。}}編譯并運行查看結(jié)果 四、實驗結(jié)果與分析(程序運行結(jié)果及其分析)五、實驗體會(遇到問題及解決辦法,編程后的心得體會)
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1