9899100101102103104105106107108
} private void initSurface(int width, int height) { Graphics2D g2 = createGraphics(); try { g2.clearRect(0, 0, width, height); } finally { g2.dispose(); } }