What I'm trying to achieve here is put an image inside of any JButton (which is stored inside of an array) whenever you click on one of them. All the images are inside of the eclipse-workspace. What am I doing wrong here?
@Override
public void actionPerformed(ActionEvent e) {
JButton source = (JButton) e.getSource();
source.setIcon(new ImageIcon("csharp.png"));
}