The panel to which you draw the image is never added to the content pane of the JFrame. Using the dialect of the code you posted, one line should do it

pane.add(panel);