Commit 1d56863c authored by Gaurav Arora (gaa721)'s avatar Gaurav Arora (gaa721)
Browse files

Indentation and date

parent 54770ce5
......@@ -142,7 +142,9 @@ setupInside();
lastKeyInput = System.nanoTime();
lastMouseInput = System.nanoTime();
new InputReceiver(this);
fill(0);
textSize(12);
text("Welcome to the Attention Study.\n In this part of the study There will be a chat going on screen the and then after sometime there will be a black screen. Black screen would mean that you are not attentive at that time. After the Black Screen there would be Questions asking what do you think happened when you were not attentive that is when where was a black screen. Press Enter when you want to start.",100,250,400,400);
}
......
......@@ -57,7 +57,7 @@ public void textfield2_change1(GTextField source, GEvent event) { //_CODE_:textf
else
rightorwrong="Incorrect";
date = new Date();
writer.println("Date " + date.toString() + " Timestamp: " + millis() + " Partipation ID: " + participationID +" Type: "+ questionCounter +" Trial number: " + tempFiler+ ":"+(questionCounter+1) + " Correct Answer: " + Answers[tempFiler][questionCounter] + " Answer Given: " + source.getText() +" Equal Percentage: " + tempPercent + " Comment: " + rightorwrong );
pushMatrix();
......
......@@ -26,6 +26,7 @@ public void textfield1_change1(GTextField source, GEvent event) { //_CODE_:textf
try
{
//writer = new PrintWriter("c:/Users/gaa721/Desktop/" + day()+"-"+month()+"-"+year()+"-"+ hour()+"-"+minute() +"-"+second()+ "-" + participationID + ".txt");
date = new Date();
writer = new PrintWriter(new FileWriter(folderName+ "/"+day()+"-"+month()+"-"+year()+"-"+ hour()+"-"+minute() +"-"+second()+ "-" + participationID + ".txt"), true);
}
catch(FileNotFoundException e)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment