Fixing both this issue and #2 except for the the it won't remember the folder through different executions of the program.
I'm just not really happy on how the GlobalHolder look. Inspired by some trick I learnt with C++ experience, I tried to apply it on Java, only to face generic programming limitations on Java. The result look a bit silly but it works as expected.
The last step is probably remembering the path through instance through the Preferences API. Now to determine if I should not use GlobalHolder anymore (and eventually remove it) and just interface with the API directly for every case a JFileChooser is used.
Fixing both this issue and #2 except for the the it won't remember the folder through different executions of the program.
I'm just not really happy on how the GlobalHolder look. Inspired by some trick I learnt with C++ experience, I tried to apply it on Java, only to face generic programming limitations on Java. The result look a bit silly but it works as expected.
The last step is probably remembering the path through instance through the Preferences API. Now to determine if I should not use GlobalHolder anymore (and eventually remove it) and just interface with the API directly for every case a JFileChooser is used.