See the API for ImageIcon - there is no setVisible method. Try placing the ImageIcon in a JLabel...I recommend reading the following: How to Use Icons (The Java™ Tutorials > Creating a GUI With...