+
+ /**
+ * Removes this object as a property change listener, and nulls references
+ */
+ protected void dispose()
+ {
+ try
+ {
+ av.getRanges().removePropertyChangeListener(this);
+ Frame parent = (Frame) getParent();
+ parent.dispose();
+ parent.setVisible(false);
+ } finally
+ {
+ av = null;
+ if (oviewCanvas != null)
+ {
+ oviewCanvas.dispose();
+ }
+ oviewCanvas = null;
+ ap = null;
+ od = null;
+ }
+ }