版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
//入住importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;importjavax.swing.border.Border;importjavax.swing.text.*;publicclassA1extendsJFrameimplementsWindowListener{ //定義各個組件 JFrameframe=newJFrame("入住系統(tǒng)"); JLabelnameLabel=newJLabel("用戶姓名"); JLabelidtifyLabel=newJLabel("身份證號"); JLabelroomLabel=newJLabel("入住房號"); JLabelmoneyLabel=newJLabel("應(yīng)付金額"); JTextFieldnameField=newJTextField(); JTextFieldidtifyField=newJTextField(); JTextFieldroomField=newJTextField(); JTextFieldmoneyField=newJTextField(); JButtonbutton1,button2; /* publicstaticvoidmain(Stringargs[]) { A1a1=newA1(); a1.go(); }*/ publicvoidgo(){ UpperCaseDocumentucDocument=newUpperCaseDocument(); nameField.setDocument(ucDocument); nameField.setForeground(Color.black); //frame.addWindowListener(this); nameField.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringusername=nameField.getText(); } }); JComboBoxjcb1;//組合框 String[]itemList={"現(xiàn)金","刷卡"}; jcb1=newJComboBox(itemList); jcb1.setSelectedIndex(0); button1=newJButton("確定支付"); button2=newJButton("取消支付"); finalJPanelp1=newJPanel(); p1.add(jcb1); p1.add(button1); p1.add(button2); p1.setLayout(newGridLayout(3,1)); Borderetched=BorderFactory.createEtchedBorder(); Borderborder=BorderFactory.createTitledBorder(etched,"付款方法"); p1.setBorder(border); button1.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) { if(e.getActionCommand()=="確定支付") { JOptionPane.showMessageDialog(p1, "支付成功","success", JOptionPane.INFORMATION_MESSAGE); } } } ); button2.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) { if(e.getActionCommand()=="取消支付") { JOptionPane.showMessageDialog(p1, "支付失敗","failure", JOptionPane.INFORMATION_MESSAGE); } } } ); idtifyField.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringidtify=idtifyField.getText(); Stringidtifyword=newString(idtify); } }); roomField.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringroom=roomField.getText(); Stringroomword=newString(room); } }); moneyField.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringmoney=moneyField.getText(); Stringidtifyword=newString(money); } }); //面板labelPanel放標(biāo)簽 JPanellabelPanel=newJPanel(); labelPanel.setLayout(newGridLayout(4,1)); labelPanel.add(nameLabel); labelPanel.add(idtifyLabel); labelPanel.add(roomLabel); labelPanel.add(moneyLabel); //面板fieldPanel放文本框 JPanelfieldPanel=newJPanel(); fieldPanel.setLayout(newGridLayout(4,1)); fieldPanel.add(nameField); fieldPanel.add(idtifyField); fieldPanel.add(roomField); fieldPanel.add(moneyField); //面板northPanel放面板lanelPanel和面板fieldPanel JPanelnorthPanel=newJPanel(); northPanel.setLayout(newGridLayout(1,2)); northPanel.add(labelPanel); northPanel.add(fieldPanel); Containercp=frame.getContentPane(); cp.add(northPanel,BorderLayout.NORTH);//northPanel放在north cp.add(p1,BorderLayout.SOUTH); frame.setSize(200,250); frame.setVisible(true); } publicvoidwindowClosing(WindowEvente1){ System.exit(0); } publicvoidwindowOpened(WindowEvente2){ } publicvoidwindowIconified(WindowEvente3){ } publicvoidwindowDeiconified(WindowEvente4){ } publicvoidwindowClosed(WindowEvente5){ } publicvoidwindowActivated(WindowEvente6){ } publicvoidwindowDeactivated(WindowEvente7){ } }classUpperCaseDocumentextendsPlainDocument{publicvoidinsertString(intoffset,Stringstring,AttributeSetattributeSet)throwsBadLocationException{string=string.toUpperCase();super.insertString(offset,string,attributeSet);}}第二個://退房importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;importjavax.swing.border.Border;importjavax.swing.text.*;publicclassA2extendsJFrame{ //定義各個組件 JFrameframe=newJFrame("退房系統(tǒng)"); JLabelnameLabel=newJLabel("用戶姓名"); JLabelidtifyLabel=newJLabel("身份證號"); JLabelroomLabel=newJLabel("退房號"); JLabeltimeLabel=newJLabel("退房時間"); JTextFieldnameField=newJTextField(); JTextFieldidtifyField=newJTextField(); JTextFieldroomField=newJTextField(); JTextFieldtimeField=newJTextField(); JButtonbutton1,button2; //JTextAreata=newJTextArea(5,20); /* publicstaticvoidmain(Stringargs[]) { A2a2=newA2(); a2.go(); } */ publicvoidgo(){ UpperCaseDocumentucDocument=newUpperCaseDocument(); nameField.setDocument(ucDocument); nameField.setForeground(Color.black); nameField.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringusername=nameField.getText(); } }); button1=newJButton("是"); button2=newJButton("否"); finalJPanelp1=newJPanel(); p1.add(button1); p1.add(button2); p1.setLayout(newGridLayout(2,1)); Borderetched=BorderFactory.createEtchedBorder(); Borderborder=BorderFactory.createTitledBorder(etched,"是否結(jié)清消費賬單"); p1.setBorder(border); button1.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) { if(e.getActionCommand()=="是") { JOptionPane.showMessageDialog(p1, "謝謝您大力支持!","success", JOptionPane.INFORMATION_MESSAGE); } } } ); button2.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) { if(e.getActionCommand()=="否") { JOptionPane.showMessageDialog(p1, "請結(jié)清消費賬單","failure", JOptionPane.INFORMATION_MESSAGE); } } } ); idtifyField.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringidtify=idtifyField.getText(); Stringidtifyword=newString(idtify); } }); roomField.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringroom=roomField.getText(); Stringroomword=newString(room); } }); timeField.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringtime=timeField.getText(); Stringtimeword=newString(time); } }); //面板labelPanel放標(biāo)簽 JPanellabelPanel=newJPanel(); labelPanel.setLayout(newGridLayout(4,1)); labelPanel.add(nameLabel); labelPanel.add(idtifyLabel); labelPanel.add(roomLabel); labelPanel.add(timeLabel); //面板fieldPanel放文本框 JPanelfieldPanel=newJPanel(); fieldPanel.setLayout(newGridLayout(4,1)); fieldPanel.add(nameField); fieldPanel.add(idtifyField); fieldPanel.add(roomField); fieldPanel.add(timeField); //面板northPanel放面板lanelPanel和面板fieldPanel JPanelnorthPanel=newJPanel(); northPanel.setLayout(newGridLayout(1,2)); northPanel.add(labelPanel); northPanel.add(fieldPanel); Containercp=frame.getContentPane(); cp.add(northPanel,BorderLayout.NORTH);//northPanel放在north cp.add(p1,BorderLayout.SOUTH); //frame.pack(); frame.setSize(200,230); frame.setVisible(true); } }classUpperCaseDocumentextendsPlainDocument{publicvoidinsertString(intoffset,Stringstring,AttributeSetattributeSet)throwsBadLocationException{string=string.toUpperCase();super.insertString(offset,string,attributeSet);}}第三個://客房預(yù)訂importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;importjavax.swing.border.Border;importjavax.swing.text.*;publicclassA3extendsJFrame{ //定義各個組件 JFrameframe=newJFrame("客房預(yù)訂"); JLabelnameLabel=newJLabel("預(yù)訂人姓名"); JLabelnumberLabel=newJLabel("手機號"); JTextFieldnameField=newJTextField(); JTextFieldnumberField=newJTextField(); JRadioButtonrb1=newJRadioButton("來電預(yù)訂"); JRadioButtonrb2=newJRadioButton("電話預(yù)訂"); JRadioButtonrb3=newJRadioButton("電傳預(yù)訂"); JRadioButtonrb4=newJRadioButton("傳真預(yù)訂"); JRadioButtonrb5=newJRadioButton("信函預(yù)訂"); JButtonbutton1,button2; /* *publicstaticvoidmain(Stringargs[]) { A3a3=newA3(); a3.go(); }*/ publicvoidgo(){ UpperCaseDocumentucDocument=newUpperCaseDocument(); nameField.setDocument(ucDocument); nameField.setForeground(Color.black); nameField.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringusername=nameField.getText(); } }); JComboBoxjcb1;//組合框 String[]itemList={"總統(tǒng)套房","雙人間","單人間"}; jcb1=newJComboBox(itemList); jcb1.setSelectedIndex(0); button1=newJButton("是"); button2=newJButton("否"); finalJPanelp1=newJPanel(); p1.add(jcb1); p1.add(button1); p1.add(button2); p1.setLayout(newGridLayout(3,1)); Borderetched=BorderFactory.createEtchedBorder(); Borderborder=BorderFactory.createTitledBorder(etched,"預(yù)訂房類型"); p1.setBorder(border); button1.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) { if(e.getActionCommand()=="是") { JOptionPane.showMessageDialog(p1, "客人預(yù)訂成功","success", JOptionPane.INFORMATION_MESSAGE); } } } ); button2.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) { if(e.getActionCommand()=="否") { JOptionPane.showMessageDialog(p1, "客人預(yù)訂失敗","failure", JOptionPane.INFORMATION_MESSAGE); } } } ); JPanelp2=newJPanel(); p2.add(rb1); p2.add(rb2); p2.add(rb3); p2.add(rb4); p2.add(rb5); p2.setLayout(newFlowLayout()); border=BorderFactory.createTitledBorder(etched,"預(yù)訂方法"); p2.setBorder(border); //創(chuàng)建ButtonGroup按鈕組,并在組中添加按鈕 ButtonGroupgroup1=newButtonGroup(); group1.add(rb1); group1.add(rb2); group1.add(rb3); group1.add(rb4); group1.add(rb5); numberField.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringnumber=numberField.getText(); Stringnumberword=newString(number); } }); //面板labelPanel放標(biāo)簽 JPanellabelPanel=newJPanel(); labelPanel.setLayout(newGridLayout(2,1)); labelPanel.add(nameLabel); labelPanel.add(numberLabel); //面板fieldPanel放文本框 JPanelfieldPanel=newJPanel(); fieldPanel.setLayout(newGridLayout(2,1)); fieldPanel.add(nameField); fieldPanel.add(numberField); //面板northPanel放面板lanelPanel和面板fieldPanel JPanelnorthPanel=newJPanel(); northPanel.setLayout(newGridLayout(1,2)); northPanel.add(labelPanel); northPanel.add(fieldPanel); Containercp=frame.getContentPane(); cp.add(northPanel,BorderLayout.NORTH);//northPanel放在north cp.add(p2,BorderLayout.CENTER); cp.add(p1,BorderLayout.SOUTH); frame.setSize(200,330); frame.setVisible(true); } }classUpperCaseDocumentextendsPlainDocument{publicvoidinsertString(intoffset,Stringstring,AttributeSetattributeSet)throwsBadLocationException{string=string.toUpperCase();super.insertString(offset,string,attributeSet);}}第四個//餐飲預(yù)訂importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;importjavax.swing.border.Border;importjavax.swing.text.*;publicclassA4extendsJFrame{ //定義各個組件 JFrameframe=newJFrame("餐飲預(yù)訂"); JLabelnameLabel=newJLabel("預(yù)訂人姓名"); JLabeltimeLabel=newJLabel("預(yù)訂消費時間"); JTextFieldnameField=newJTextField(); JTextFieldtimeField=newJTextField(); JCheckBoxcb1=newJCheckBox("中餐"); JCheckBoxcb2=newJCheckBox("西餐"); JCheckBoxcb3=newJCheckBox("紅酒"); JCheckBoxcb4=newJCheckBox("飲料"); JCheckBoxcb5=newJCheckBox("甜點"); JCheckBoxcb6=newJCheckBox("水果"); JButtonbutton1,button2; /* publicstaticvoidmain(Stringargs[]) { A4a4=newA4(); a4.go(); }*/ publicvoidgo(){ UpperCaseDocumentucDocument=newUpperCaseDocument(); nameField.setDocument(ucDocument); nameField.setForeground(Color.black); nameField.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringusername=nameField.getText(); //ta.append("\nUserName:"+username); } }); button1=newJButton("是"); button2=newJButton("否"); finalJPanelp1=newJPanel(); p1.add(button1); p1.add(button2); p1.setLayout(newGridLayout(3,1)); Borderetched=BorderFactory.createEtchedBorder(); Borderborder=BorderFactory.createTitledBorder(etched,"確定訂餐"); p1.setBorder(border); button1.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) { if(e.getActionCommand()=="是") { JOptionPane.showMessageDialog(p1, "訂餐成功","success", JOptionPane.INFORMATION_MESSAGE); } } } ); button2.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) { if(e.getActionCommand()=="否") { JOptionPane.showMessageDialog(p1, "訂餐失敗","failure", JOptionPane.INFORMATION_MESSAGE); } } } ); timeField.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringtime=timeField.getText(); Stringtimeword=newString(time); } }); JPanelp2=newJPanel(); p2.add(cb1); p2.add(cb2); p2.add(cb3); p2.add(cb4); p2.add(cb5); p2.add(cb6); Borderetched1=BorderFactory.createEtchedBorder(); Borderborder1=BorderFactory.createTitledBorder(etched1,"預(yù)訂內(nèi)容"); p2.setBorder(border1); //面板labelPanel放標(biāo)簽 JPanellabelPanel=newJPanel(); labelPanel.setLayout(newGridLayout(4,1)); labelPanel.add(nameLabel); labelPanel.add(timeLabel); //面板fieldPanel放文本框 JPanelfieldPanel=newJPanel(); fieldPanel.setLayout(newGridLayout(4,1)); fieldPanel.add(nameField); fieldPanel.add(timeField); //面板northPanel放面板lanelPanel和面板fieldPanel JPanelnorthPanel=newJPanel(); northPanel.setLayout(newGridLayout(1,2)); northPanel.add(labelPanel); northPanel.add(fieldPanel); Containercp=frame.getContentPane(); cp.add(northPanel,BorderLayout.NORTH);//northPanel放在north cp.add(p2,BorderLayout.CENTER); cp.add(p1,BorderLayout.SOUTH); frame.setSize(200,350); frame.setVisible(true); } }classUpperCaseDocumentextendsPlainDocument{publicvoidinsertString(intoffset,Stringstring,AttributeSetattributeSet)throwsBadLocationException{string=string.toUpperCase();super.insertString(offset,string,attributeSet);}}第五個:importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;importjavax.swing.border.Border;importjavax.swing.text.*;publicclassA5extendsJFrame{ //定義各個組件 JFrameframe=newJFrame("訂單管理"); JLabela1=newJLabel("訂單號"); JLabela2=newJLabel("訂貨名稱"); JLabela3=newJLabel("收貨地址"); JLabela4=newJLabel("應(yīng)收金額");JLabela5=newJLabel("用戶名稱");JLabela6=newJLabel("結(jié)算方法");JLabela7=newJLabel("經(jīng)辦人"); JTextFieldb1=newJTextField(); JTextFieldb2=newJTextField(); JTextFieldb3=newJTextField(); JTextFieldb4=newJTextField();JTextFieldb5=newJTextField();JTextFieldb6=newJTextField();JTextFieldb7=newJTextField();JButtonbutton1,button2;publicstaticvoidmain(Stringargs[]) { A5a1=newA5(); a1.go(); }publicvoidgo(){ UpperCaseDocumentucDocument=newUpperCaseDocument(); b1.setDocument(ucDocument); b1.setForeground(Color.black); b1.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringusername=b1.getText(); } });JComboBoxjcb1;//組合框 String[]itemList={"現(xiàn)金","刷卡"}; jcb1=newJComboBox(itemList); jcb1.setSelectedIndex(0); button1=newJButton("確定收款"); button2=newJButton("取消收款"); finalJPanelp1=newJPanel(); p1.add(jcb1); p1.add(button1); p1.add(button2); p1.setLayout(newGridLayout(3,1)); Borderetched=BorderFactory.createEtchedBorder(); Borderborder=BorderFactory.createTitledBorder(etched,"收款方法"); p1.setBorder(border); button1.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) { if(e.getActionCommand()=="確定收款") { JOptionPane.showMessageDialog(p1, "收款成功","success", JOptionPane.INFORMATION_MESSAGE); } } } ); button2.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) { if(e.getActionCommand()=="取消收款") { JOptionPane.showMessageDialog(p1, "收款失敗","failure", JOptionPane.INFORMATION_MESSAGE); } } } ); b1.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringidtify=a1.getText(); Stringidtifyword=newString(idtify); } }); b2.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringroom=a2.getText(); Stringroomword=newString(room); } }); b3.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringmoney=a3.getText(); Stringidtifyword=newString(money); } }); b4.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringmoney=a4.getText(); Stringidtifyword=newString(money); } }); b5.addActionListener(newActionListener() { publicvoidactionPerformed(ActionEvente) {Stringmoney=a5.getText(); Stringidtifyword=newString(money); } }); //面板labelPanel放標(biāo)簽 JPanellabelPanel=newJPanel(); labelPanel.setLayout(newGridLayout(7,1)); labelPanel.add(a1);labelPanel.add(a2); labelPanel.add(a3); labelPanel.add(a4);labelPanel.add(a5);labelPanel.add(a6);labelPanel.add(a7);//面板fieldPanel放文本框 JPanelfieldPanel=newJPanel(); fieldPanel.setLayout(newGridLayout(7,1)); fieldPanel.add(b1); fieldPanel.add(b2); fieldPanel.add(b3); fieldPanel.add(b4);fieldPanel.add(b5); fieldPanel.add(b6); fieldPanel.add(b7);//面板northPanel放面板lanelPanel和面板fieldPanel JPanelnorthPanel=newJPanel(); northPanel.setLayout(newGridLayout(1,2)); northPanel.add(labelPanel); northPanel.add(fieldPanel); Containercp=frame.getContentPane(); cp.add(northPanel,BorderLayout.NORTH);//northPanel放在north cp.add(p1,BorderLayout.SOUTH); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(200,250); frame.setVisible(true); } }classUpperCaseDocumentextendsPlainDocument{publicvoidinsertString(intoffset,Stringstring,AttributeSetattributeSet)throwsBadLocationException{string=string.toUpperCase();super.insertString(offset,string,attributeSet);}}第六個:importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;importjavax.swing.text.*;importjavax.swing.border.*;publicclassF{ privateJFrameframe;privateJButtonb1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13;JTextAreata=newJTextArea(20,20);JTextAreatb=newJTextArea(20,20);publicstaticvoidmain(Stringargs[]){ Fthat=newF();that.go();}voidgo(){ frame=newJFrame("客房檢驗");ContainercontentPane=frame.getContentPane();JPanelP1=newJPanel();P1.setLayout(newGridLayout());b1=newJButton("101\n單人間");b2=newJButton("102\n單人間");b3=newJButton("103\n單人間");b4=newJButton("104\n單人間");b5=newJButton("105\n單人間");b6=newJButton("201\n雙人間");b7=newJButton("202\n雙人間");b8=newJButton("203\n雙人間");b9=newJButton("204\n雙人間");b10=newJButton("205\n雙人間");b11=newJButton("301\n總統(tǒng)套房");b12=newJButton("302\n總統(tǒng)套房");b13=newJButton("303\n總統(tǒng)套房");b1.setBackground(Color.cyan);b2.setBackground(Color.cyan);b3.setBackground(Color.cyan);b4.setBackground(Color.cyan);b5.setBackground(Color.cyan);b6.setBackground(Color.magenta);b7.setBackground(Color.magenta);b8.setBackground(Color.magenta);b9.setBackground(Color.magenta);b10.setBackground(Color.magenta);b11.setBackground(Color.pink);b12.setBackground(Color.pink);b13.setBackground(Color.pink);P1.add(b1);P1.add(b2);P1.add(b3);P1.add(b4);P1.add(b5);P1.add(b6);P1.add(b7);P1.add(b8);P1.add(b9);P1.add(b10);P1.add(b11);P1.add(b12);P1.add(b13);tb.append("房間總數(shù):13");tb.append("\n目前占用:");tb.append("\n目前可供:"); P1.add(tb);ActionListeneral=newActionListener(){ publicvoidactionPerformed(ActionEvente){ if(e.getActionCommand()=="101\n單人間"){ ta.setText(""); JFrameframe=newJFrame("檢驗信息"); JPanelp2=newJPanel(); Containercp=frame.getContentPane(); ta.append("\n101房間是否打掃:"); ta.append("\n101房間里是否有家俱損壞:"); ta.append("\n101房間是否交足余額:"); JButtona=newJButton("提交"); p2.add(a); ActionListeneral=newActionListener(){ publicvoidactionPerformed(ActionEvente){ if(e.getActionCommand()=="提交"){ JOptionPane.showMessageDialog(ta, "提交成功",null, JOptionPane.INFORMATION_MESSAGE); } } }; a.addActionListener(al); p2.add(ta); p2.setBackground(Color.yellow); frame.setContentPane(p2); frame.pack(); frame.setVisible(true); } elseif(e.getActionCommand()=="102\n單人間"){ ta.setText(""); JFrameframe=newJFrame("檢驗信息"); JPanelp2=newJPanel(); Containercp=frame.getContentPane(); ta.append("\n102房間是否打掃:"); ta.append("\n102房間里是否有家俱損壞:"); ta.append("\n102房間是否交足余額:"); JButtona=newJButton("提交"); p2.add(a); ActionListeneral=newActionListener(){ publicvoidactionPerformed(ActionEvente){ if(e.getActionCommand()=="提交"){ JOptionPane.showMessageDialog(ta, "提交成功",null, JOptionPane.INFORMATION_MESSAGE); } } }; a.addActionListener(al); p2.add(ta); p2.setBackground(Color.yellow); frame.setContentPane(p2); frame.pack(); frame.setVisible(true); } elseif(e.getActionCommand()=="103\n單人間"){ ta.setText(""); JFrameframe=newJFrame("檢驗信息"); JPanelp2=newJPanel(); Containercp=frame.getContentPane(); ta.append("\n103房間是否打掃:"); ta.append("\n103房間里是否有家俱損壞:"); ta.append("\n103房間是否交足余額:"); JButtona=newJButton("提交"); p2.add(a); ActionListeneral=newActionListener(){ publicvoidactionPerformed(ActionEvente){ if(e.getActionCommand()=="提交"){ JOptionPane.showMessageDialog(ta, "提交成功",null, JOptionPane.INFORMATION_MESSAGE); } } }; a.addActionListener(al); p2.add(t
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 物品買賣免責(zé)合同范例
- 貨車貸款租賃合同范例
- 土地出讓合同范例 完
- 自種蔬菜售賣合同范例
- 買賣合同居間合同范例
- 銀行貸款合同范例格式
- 炸雞門店轉(zhuǎn)讓合同范例
- 杭州裝飾裝修合同范例
- 閣樓鋼結(jié)構(gòu)合同范例
- 合作服裝賠償合同范例
- 網(wǎng)上外賣系統(tǒng)分析報告-課程設(shè)計報告
- 2024浙江省建筑安全員B證(項目經(jīng)理)考試題庫
- Stevens-Johnson綜合征及中毒性表皮壞死松解癥課件
- 初中數(shù)學(xué)-探索與表達規(guī)律教學(xué)設(shè)計學(xué)情分析教材分析課后反思
- 中央財經(jīng)大學(xué)產(chǎn)業(yè)經(jīng)濟學(xué)
- 設(shè)計投標(biāo)書范本
- 23所行政管理博士點學(xué)校之一
- SWITCH塞爾達傳說曠野之息-1.6金手指127項修改使用說明教程
- 自考02313電力系統(tǒng)微型計算機繼電保護歷年(12-19)真題試卷
- 馬克思主義基本原理智慧樹知到答案章節(jié)測試2023年重慶工商大學(xué)
- 2023年電動力學(xué)復(fù)習(xí)題庫更新版
評論
0/150
提交評論