I'm trying to add an image to a button instead of text. I looked at some examples, and I can't figure out what I am missing.
I've imported this because the ex. had it. Don't know if it is needed.
import javax.swing.AbstractButton;
import javax.swing.JButton;
import javax.swing.ImageIcon;
Then this is where I make the icon.
ImageIcon pauseIcon = createImageIcon("pause.bmp");
pause= new JButton("pause ", pauseIcon);
This is the error I get:
"cannot resolve symbol
symbol : method createImageIcon (java.lang.String)
location: class RAAN
ImageIcon pauseIcon = createImageIcon("pause.bmp");"
^
Thanks for helping