public void displayCoords(DirectPosition2D mapPos){
  if (mapPos != null) {
    applicationWindow.setStatus(String.format("  %.2f %.2f",mapPos.x,mapPos.y));
  }
}

public void displayCoords ( DirectPosition2D mapPos ) { if ( mapPos != null ) { applicationWindow . setStatus ( String . format ( "  %.2f %.2f" , mapPos . x , mapPos . y ) ) ; } }
format and display the coordinates of the given position
