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
JLabel imgLabel = new JLabel(new ImageIcon("path_to_image.png"));