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 ??
JFileChooser
F
1 Resposta
T
Javadoc é seu amigo… Um dos construtores de JFileChooser deve lhe satisfazer.
<i>
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.</i>
Criado 28 de março de 2006
Ultima resposta 28 de mar. de 2006
Respostas 1
Participantes 2