String getLabel()
ボタンのラベルを返します。
public void actionPerformed(ActionEvent e) {
String buf;
Double D;
Button Bmoto = (Button)e.getSource();
if (Bmoto == bm) {
//Btn1();
} else {
buf=L1.getText();
buf=buf+Bmoto.getLabel();
///D=double.doubleValue(buf);
}
}
コメントする