Select folder but make a default folder to start from?
in
Programming Questions
•
7 months ago
hello all,
I want to select a folder but make a default folder to start from?
At the moment the folder selector always starts at documents but I want to make it
start at D://Music
But how?
I am using this in my MP3 Player
Thanks!!
Chrisir
- //
- void chooseFolder() {
- selectFolder("Select a folder to process:", "folderSelected");
- }
- //
- void folderSelected(File selection) {
- if (selection == null) {
- println("Window was closed or the user hit cancel.");
- }
- else {
- println("User selected " + selection.getAbsolutePath());
- pathGlobal= selection.getAbsolutePath();
- getFolder();
- indexFile=0;
- getCurrentSong();
- }
- }
1