fixed long-standing bug in painting AWT components using GLG2DCanvas