Set the JFileChooser to open current directory?

Either pass the directory into the constructor via the File parameter (a File can also be a directory, FYI), or use the setCurrentDirectory(File dir) method before you make the JFileChooser visible.

Either pass the directory into the constructor via the File parameter (a File can also be a directory, FYI), or use the . SetCurrentDirectory(File dir) method before you make the JFileChooser visible. Also, to make the JFileChooser stay in the same folder, you need to save the folder of the file/directory chosen from last time, and use THAT value to control which folder it starts in the subsequent times via .

SetCurrentDirectory(File dir).

Make the chooser a class level attribute and create it only once. That way, it not only points to where it did when closed, but will have the same size, location, file filter selected etc.

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.

Related Questions