Background Rendering with PaintPanel

I’ve created a Java class that extends JPanel, to help with redrawing images and diagrams. It uses a saved BufferedImage to repaint the panel when the image size hasn’t changed, and interruptible background rendering to a BufferedImage when the size does change, with refreshes to the screen as the image is being rendered. The refresh interval is configurable. The class is called PaintPanel, and is free for download and use under the LGPL.

This entry was posted in Java. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>