Is storing Graphics objects a good idea?
No, storing a Graphics object is usually a bad idea. 🙂 Here’s why: Normally, Graphics instances are short-lived and is used to paint or draw onto some kind of surface (typically a (J)Component or a BufferedImage). It holds the state of these drawing operations, like colors, stroke, scale, rotation etc. However, it does not hold … Read more