public LocoIcon addLocoIcon(String name){
  LocoIcon l=new LocoIcon(this);
  Point2D pt=windowCenter();
  l.setLocation((int)pt.getX(),(int)pt.getY());
  putLocoIcon(l,name);
  l.setPositionable(true);
  return l;
}

public LocoIcon addLocoIcon ( String name ) { LocoIcon l = new LocoIcon ( this ) ; Point2D pt = windowCenter ( ) ; l . setLocation ( ( int ) pt . getX ( ) , ( int ) pt . getY ( ) ) ; putLocoIcon ( l , name ) ; l . setPositionable ( true ) ; return l ; }
add a loco marker to the target
