for (int j = 0; j<i ; j++) tabPane.addTab("Source "+(j+1),srcPanel[j]); }});
for (int j = 0; j < i; j++) tabPane.addTab("Source " + (j + 1), srcPanel[j]); }
	   public void stateChanged(ChangeEvent e) {                int i=numSources.getValue();                for (int j = i; j<6; j++)                  tabPane.remove(srcPanel[j]);                for (int j = 0; j<i ; j++)                  tabPane.addTab("Source "+(j+1),srcPanel[j]);               }});