java 代码
限制只能输入小数
if (e.text.length() > 0){
try{
Double.parseDouble(e.text);
e.doit = true;
}catch(Exception ep){
e.doit = false;
}
}