Hi Roman,
On Thu, 2005-09-22 at 16:13 +0200, Roman Kennke wrote:
> + /**
> + * Performs normal painting without double buffering.
> + *
> + * @param r the area to be repainted
> + */
> + void paintSimple(Rectangle r)
> + {
> + Graphics g = getGraphics();
> + Graphics g2 = getComponentGraphics(g);
> + paint(g2);
> + g2.dispose();
> + g2.dispose();
> }You are disposing g2 twice, but not g. Is there actually a reason to explicitly dispose() of an Graphics object? Why don't we just let Graphics.finalize() handle it? Cheers, Mark
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Classpath-patches mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpath-patches
