static private ArrayList seriesColors = new ArrayList(); public Audiogram(int widthParm, int heightParm) throws Exception { sup
A collection utilising weak references is generally the solution to the kind of problem in your first example.
See: http://download.oracle.com/javase/1.4.2/docs/api/java/lang/ref/WeakReference.html