文档介绍://入住
import .*;
import .*;
import .*;
import ;
import .*;
public class A1 extends JFrame implements WindowListener {
//定义各个组件
JFrame frame = new JFrame ("入住系统");
JLabel nameLabel = new JLabel("客户");
JLabel idtifyLabel = new JLabel("号");
JLabel roomLabel = new JLabel("入住房号");
JLabel moneyLabel = new JLabel("应付金额");
JTextField nameField = new JTextField();
JTextField idtifyField= new JTextField();
JTextField roomField= new JTextField();
JTextField moneyField= new JTextField();
utton button1,button2;
/*
public static void main(String args[])
{
A1 a1 = new A1();
();
}
*/
public void go(){
UpperCaseDocument ucDocument = new UpperCaseDocument();
(ucDocument);
();
//(this);
(new ActionListener()
{ public void actionPerformed(ActionEvent e)
{ String username = ();
}
});
oBox jcb1;//组合框
String[] itemList = { "现金", "刷卡" };
jcb1 = new oBox(itemList);
(0);
button1=new utton("确认支付");
button2=new utton("取消支付");
final JPanel p1 = new JPanel();
(jcb1);
(button1);
(button2);
(new GridLayout(3,1));
Border etched = ();
Border border = (etched, "付款方式");
(border);
(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
if (()=="确认支付")
{ (p1,
"支付成功","success",