How do I change JFrame image icon?

This example demonstrate how to change a JFrame image icon using the setIconImage() method.