How do I get a FileObject for a DataObject? Apache NetBeans Wiki Index/Apache NetBeans Developer FAQ theDataObject.getPrimaryFile() See this page in GitHub.