I wanted to test having a program with a simple png image on it. I wrote a short program that does this, but I can\'t seem to get the path right. I have checked, checked aga
Using this fixed it for me:
JButton btnBanana = new JButton("New button"); btnBanana.setIcon(new ImageIcon("D:\\Android\\Company\\images\\bananas-icon.png"));