String parserName = (String) cboUDPDataParserImplementation.getSelectedItem();
System.out.println(parserName + " selected");
if (parserName.equals("Generic")){
udpServer.setSensorDataParser(new GenericUDPAccelerometerSensorParser());
} else if (parserName.equals("GDroid - Android")){
udpServer.setSensorDataParser(new GDroidUDPAccelerometerSensorParser());
} else if (parserName.equals("AccSim - IPhone")){
udpServer.setSensorDataParser(new AccSimIPhoneUDPAccelerometerSensorParser());
}
}//GEN-LAST:event_cboUDPDataParserImplementationActionPerformed