String timeStamp = timeStampTextField.getText();
try {
int time = Integer.parseInt(timeStamp);
TestMessage newmessage = new TestMessage(query, nodeId, time);
testbox.addTest(newmessage);
} catch(Exception ex) {
//error if not a number
System.out.println(ex);