cannot find symbol for inherited method - why?
[code]
public class Crop extends CropBean implements ComponentInitializer {
private BufferedImage getImage() {
if (getFileName() == null || getFileName().equals("")) {
setFileName("http://valsignalandet.com/images/
cemetery_potluck_3/flyer.jpg");
}
String fileName = getFileName();
BufferedImage image = null;
try {
URL url = new URL(fileName);
image = ImageIO.read(url);
} catch(MalformedURLException mue) {
System.err.println("url: " + mue.getMessage());
} catch(IOException ioe) {
System.err.println("read: " + ioe.getMessage());
}
return image;
}
}
[/code]
This class extends CropBean:
[code]
/*
* CropBean.java
*
* Created on March 23, 2007, 12:32 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package com.ppowell.beans;
import java.net.URL;
import java.io.File;
import javax.swing.JFrame;
/**
* Bean for extension of {@link javax.swing.JFrame}
* @author Phil Powell
* @version JDK 1.6.0
*/
public class CropBean extends JFrame {
private String fileName;
private URL url;
private File file;
/** Creates a new instance of CropBean */
public CropBean() {
super("Crop an image");
}
private File getFile() {
return this.file;
}
private String getFileName() {
return this.fileName;
}
private URL getURL() {
return this.url;
}
private void setFile(File file) {
this.file = file;
}
private void setFileName(String fileName) {
this.fileName = fileName;
}
private void setURL(URL url) {
this.url = url;
}
}
[/code]
So why on earth am I getting "Cannot find symbol: getFIleName()" when
getFileName() comes from the inherited superclass CropBean into Crop?
Thanx
Phil