* @throws IllegalStateException if the {@code JFileChooser} is disabled.
* @throws IllegalStateException if the {@code JFileChooser} is not showing on the screen.
*/
@RunsInEDT
public void setCurrentDirectory(@Nonnull final JFileChooser fileChooser, @Nonnull final File dir) {
execute(new GuiTask() {
@Override protected void executeInEDT() {
checkEnabledAndShowing(fileChooser);
fileChooser.setCurrentDirectory(dir);
}
});