Thank you so much!
It works!
Why don't you use the standard file browser...?
What do you mean by this?
I also use "selectFolder".
Do you mean that?
I find it not well designed, it looks old fashoned, so I just write my own.
I'd love to see JavaFX in processing, I think somebody did it once.
Greetings, Chrisir
here is a part of my current code using "selectFolder":
- void chooseFolder() {
- // select a new folder (called by the open button)
- File folderToStartFrom = new File( pathGlobal );
- println(folderToStartFrom);
- selectFolder("Select a Music Folder to play",
- "folderSelected",
- folderToStartFrom );
- }
- //
- void folderSelected(File selection) {
- // this runs in another thread parallel to the main thread
- // and is called by chooseFolder()
- if (selection == null) {
- println("Window was closed or the user hit cancel.");
- }
- else {
- indexFile=0;
- state = stateNoSong;
- ...............
- .............