for (int i = 0; i < satsInView; i++) {
int barX = barPanelX + i * barWidth;
g.setColor(0, 0, 0);
g.drawRect(barX, 1, barWidth - 3, 25);
if (satellites != null && i < satellites.size()) {
Satellite sat = (Satellite) satellites.elementAt(i);
if (activeSats != null && activeSats.contains(sat.prn)) {
g.setColor(200, 200, 200);
} else {
g.setColor(40, 40, 40);