private void submitButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_submitButtonActionPerformed
//send all test messages
Collections.sort(testMessages);
try {
Communicator comm = Communicator.getCommunicator();
for(TestMessage msg : testMessages) {
Node node = comm.getNodeForId(msg.getNodeId());
if(node!=null)
node.sendMessage(msg);
}
} catch(Exception ex) {
ex.printStackTrace();