I have a JPanel to which I\'d like to add JPEG and PNG images that I generate on the fly.
All the examples I\'ve seen so far in the Swing Tutorials, specially in the
You can avoid rolling your own Component subclass completely by using the JXImagePanel class from the free SwingX libraries.
Download