Hi!
Im trying to have a save function that allows you to select the folder it goes into.
void keyPressed()
{
if(key == 'r'){
{
setup();
}
if(key ==' ')
{
selectFolder("select a folder to process","folderSelected");
}
}
void folderSelected (File selection)
{
if(selection == null)
{
return;
}
else
{
String dir2 = selection.getPath()+ "\\";
save(dir2+"Painting###.jpg");
}
}
}
The error i’m getting at the moment is:
unexpected token: void