Olá
Criei um aplicativo que utiliza um JFileChooser. Toda vez que quero abrir um arquivo a primeira pasta que aparece é os Meus Documentos. Existe alguma maneira de especificar a pasta inicial que aparece no janela do JFilleChooser ??
Javadoc é seu amigo… Um dos construtores de JFileChooser deve lhe satisfazer.
JFileChooser()
Constructs a JFileChooser pointing to the user’s default directory.
JFileChooser(File currentDirectory)
Constructs a JFileChooser using the given File as the path.
JFileChooser(File currentDirectory, FileSystemView fsv)
Constructs a JFileChooser using the given current directory and FileSystemView.
JFileChooser(FileSystemView fsv)
Constructs a JFileChooser using the given FileSystemView.
JFileChooser(String currentDirectoryPath)
Constructs a JFileChooser using the given path.
JFileChooser(String currentDirectoryPath, FileSystemView fsv)
Constructs a JFileChooser using the given current directory path and FileSystemView.