In the compiled FancyBox GUI I have two files: the main module FancyBox.java and the custompanel code in FancyBoxCustomUI.java
In FancyBoxCustomUI.java I like to use a filefilter gpsFilter defined in FancyBox.java:
linkTracklogSelector.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
getRelativePath(linkTracklogFolder, gpsFilter);
}
});
Both getRelativePath and gpsFilter are declared in FancyBox.java, but only gpsFilter get a red line (cannot find symbol).
If I copy the filter code to FancyBoxCustomUI.java:
FileFilter gpsFilter = new FileNameExtensionFilter("GPS files", new String[]{"gpx", "zip"});
I get also a red line below getRelativePath
I tried already FancyBox.gpsFilter and import FancyBox.* without succes.
What is the correct method?
Sorry for this stupid question, but I am no JAVA programmer.