Hello, I am using the FileDialog to open a file, heres my code:
FileDialog fileDialog = new FileDialog(this, "Save As...", FileDialog.SAVE);
fileDialog.setFile("untitled.nek");
fileDialog.show();
if (fileDialog.getFile() == null)
return;
mFileName = fileDialog.getDirectory() + File.separator + fileDialog.getFile();
Save(mFileName);
This is in my “SaveAs” Function. Dont worry about the Save Function. What I’m trying to do is set the file filter to ‘nek’ but I have no idea how to do this. When the file dialog appears you can save it as Anyfile, and i prefer it to be the type i want.
Any thoughts?
