- 博客(0)
- 资源 (1)
空空如也
applentapplentapplentapplent
public void click_AddSign(){
if(gettxfLat().getText().equals("")||gettxfLat().getText()==null){
JOptionPane.showMessageDialog(null, "经度不能为空,请填写!");
gettxfLat().requestFocus();
}else if(gettxfLog().getText().equals("")||gettxfLog().getText()==null){
JOptionPane.showMessageDialog(null, "纬度不能为空,请填写!");
gettxfLog().requestFocus();
}else if(gettxfName().getText().equals("")||gettxfName().getText()==null){
JOptionPane.showMessageDialog(null, "航标名称不能为空,请填写!");
gettxfName().requestFocus();
}else{
float x=Float.parseFloat(gettxfLat().getText());
float y=Float.parseFloat(gettxfLog().getText());
int tpyeid=Integer.parseInt(getcbxSigne().getSelectedItem().toString());
String name=gettxfName().getText();
String str=x+","+y+","+tpyeid+","+name;
boolean f=dataServiceFactory.getDataServiceRouteSign().addRouteSign(str);
if(f==true){
showDialog();
gettxfLat().setText("");
gettxfLog().setText("");
gettxfName().setText("");
}
}
}
2009-06-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人