This is an example shows a way to put an Image in JFrame using paint method