}
// FileDialog aFD = new FileDialog(aFrame,aMessage,omode); // should be this but a bug in read mode
FileDialog aFD = new FileDialog(aFrame,aMessage,xMode); // bug workaround ... user must type in
aFD.setFile(fileName);
try {
aFD.show();
aFile = new File(aFD.getDirectory().substring(0,aFD.getDirectory().length()-1),aFD.getFile());
}
catch (Exception e) {errMessage="Cancelled or error";return false;}
return true;