Beruflich Dokumente
Kultur Dokumente
*;
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
label customer,deposit,accno,widthdraw;
textfield cust,dept,number,draw;
textarea t;
choice type;
checkbox yes,nu;
checkboxgroup te;
frame f;
button b;
customer=new label("customer");
deposit=new label("deposit");
accno=new label("account number");
widthdraw=new label("widthdraw");
cust=new textfield(20);
dept=new textfield(20);
number=new textfield(20);
draw=new textfield(20);
type=new choice();
type.add("fixed");
type.add("rd");
// type.add("second class");
te=new checkboxgroup();
yes=new checkbox(te,"yes",false);
nu=new checkbox(te,"no",false);
t=new textarea(40,45);
b=new button("submit");
add(customer);
add(cust);
add(accno);
add(number);
add(deposit);
add(dept);
add(widthdraw);
add(draw);
add(type);
add(b);
add(yes);
add(nu);
add(t);
b.addactionlistener(this);
type.additemlistener(this);
}
"+"deposit
amount
: "+dept.gettext()+"
"+
"type of account : "+type.getselecteditem());
}
}
}
}