/** {@inheritDoc} */ @Override public void dispose() { synchronized (graphics) { graphics.clear(); } synchronized (this) { if (timer != null) { timer.stop(); } } super.dispose(); }