posted 15 years ago
What I'm doing is double buffering my GUI app, basically rather than calling JPanel.repaint() I've created a BufferedImage and am drawing directly to it and then just calling Graphics.drawImage(Image, int, int, ImageObserver) my JPanel's Graphics object. This of course prevents me from simply adding the delivered swing widgets to my JPanel. Is there a way I can extract the Image of a widget so I can just add it to my BufferedImage? Calling JComponent.creatImage() on these widgets only seems to give me an empty image object.
When you break the big rules, you get a lot of little rules.