I want to display a picture when a button is clicked on. BinTallOne is the button. Compiler can't resolve symbol, symbol being getImage(). Is there a method I could use to get a jpg file and display it? ActionListener has been implemented and added to button.Thanks Mike
code:
public void actionPerformed(ActionEvent ae) {
String label = ae.getActionCommand();
if (label.equals("BinTallOne")) {
BinTallOne = getImage("MePic.JPG");
}
}