public void setFile(File fileIn) {
if(fileIn == null || !fileIn.exists()) {
clearSelection();
return;
<BUG>}
file = fileIn;</BUG>
int i = file.getName().lastIndexOf('.');
String ext = "file";
if(i >= 0) {
ext = file.getName().substring(i+1);

public void setFile(File fileIn) {
if(fileIn == null || !fileIn.exists()) {
clearSelection();
return;
}
cancelButton.setEnabled(true);
file = fileIn;
int i = file.getName().lastIndexOf('.');
String ext = "file";
if(i >= 0) {
ext = file.getName().substring(i+1);
