I'm writing a program that has a JFileChooser
.
I want default location opened in it to be the folder in which (once the program is created) programs (runnable) .jar file is residing.
Is there a simple way to locate the program inside a file system, or do I have to do it manually?
Also, if there is a simple way, what will be default location while my program is still just a project (not jar)?