/*
* Remote API Button mode is disabled using this function.
*/
public void disableRemoteJavaApiMode(){
int status;
IntW remoteJavaApiStatus = new IntW(1);
IntW remoteJavaApiObjectHandle = new IntW(1);
status = dynamotionServer.simxGetUIHandle(clientID, "UI", remoteJavaApiObjectHandle, dynamotionServer.simx_opmode_oneshot_wait);
//System.out.format("disableRemoteJavaApiMode() function status %d\n",status);
//int S = dynamotionServer.simxGetUIButtonProperty(clientID, playBackObjectHandle.getValue(), 600, playBackStatus, dynamotionServer.simx_opmode_streaming);
//System.out.format("disableRemoteJavaApiMode Button off(8280) status %d\n",playBackStatus.getValue());
//System.out.format("disableRemoteJavaApiMode Button %d\n",S);
int J = dynamotionServer.simxSetUIButtonProperty(clientID, remoteJavaApiObjectHandle.getValue(), 600, 8280 , dynamotionServer.simx_opmode_oneshot_wait);
//System.out.format("disableRemoteJavaApiMode Button off status %d\n",playBackStatus.getValue());
//System.out.format("disableRemoteJavaApiMode Button working if 0 not working if 1: %d\n",J);
dynamotionServer.simxSetIntegerSignal(clientID,"RemoteAPI_button",600,dynamotionServer.simx_opmode_oneshot_wait);
}