If your intent is to make sure the user has selected a file rather than a directory (hinted at by your responses to other answers), you can use FileChooser. SetFileSelectionMode(JFileChooser. FILES_ONLY) .
However, that is the default setting when you instantiate the file chooser, so unless your code changes that at some point, you shouldn't need to set it explicitly.
If you want to ensure that the file name entered is valid before closing the file chooser then you should be able to do something like this.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.