I'm trying to figure out how to have a user enter in a filename not select one using the mouse but entering in a new filename and have that name be saved into the current directory. I have look at getSelectedFile examples but it seems that those examples only have the user selecting a file for the directory listing. what i need is one that allows the user to enter in a new file name. thanks to all that can help
You don't provide any code for guidance, which doesn't help us help you. Did you use the JFileChooser method showSaveDialog? (and please spell correctly, jfilechooser != JFileChooser - we are programmers, and oftentimes our brains work like compilers, meaning jfilechooser does not compile)
JFileChooser allows entering a file name. To create a new file, look at the methods of the File class.
There are also other ways to create a file. You may find some here: File I/O (Featuring NIO.2) (The Java™ Tutorials > Essential Classes > Basic I/O)