I copied this right out of oracle almost. And yet it won't draw.
ImageIcon salt = createImageIcon("icons/bathsalts.jpg"); /** * @Override */ public void draw(Graphics g){ Graphics2D g2d = (Graphics2D) g; g2d.drawImage(salt, getX(), getY(), null); } Sorry it was a hasty post in frustration. I do not understand why draw image doesnt work for me. drawRect and circle are going just fine... protected static ImageIcon createImageIcon(String path) { try{ java.net.URL imgURL = ButtonPanel.class.getResource(path); return new ImageIcon(imgURL); } catch(RuntimeException e) { System.out.println("Invalid file path"); } return null; }