public void doSaveAs() {
handleSave(true);
}
protected void handleSave(boolean promptUser) {
message("Saving file...");
<BUG>String s = textarea.getText();
String directory = lastDirectory;
String filename = lastFile;
System.out.println("1");</BUG>
if (promptUser) {

public void doSaveAs() {
handleSave(true);
}
protected void handleSave(boolean promptUser) {
message("Saving file...");
String s = textarea.getText();
String directory = sketchFile.getPath(); //lastDirectory;
String filename = sketchFile.getName(); //lastFile;
if (promptUser) {
