StringBuffer buffer = new StringBuffer();
Enumeration satEnum = location.getSatelliteInfo();
if(satEnum!=null && satEnum.hasMoreElements()){
buffer.append("ID\tAzimuth\tElevation\tSignal\n");
while(satEnum.hasMoreElements()){
SatelliteInfo satInfo = (SatelliteInfo)satEnum.nextElement();
if(satInfo!=null && satInfo.isValid()){
buffer.append(satInfo.getId() + "\t" + satInfo.getAzimuth() + "\t" + satInfo.getElevation() + "\t" + satInfo.getSignalQuality() + "\n");
}
}
satField.setText(buffer.toString());
} else{
buffer.append("No satellite information available for current location fix");