In the first place, we would like to stress that there is nothing wrong in standing in front of a judge in a non-Muslim court or a Muslim court. Standing is a form of showing respect not necessarily to the judge himself, but to the values he/she carries, which are the values of justice.
Dr. Taha Jaber Al-`Alwani, President of the Graduate School of Islamic and Social Sciences, states the following:
1. To respect and follow the regulations and laws of a country in which a Muslim accepts to live in is one of the Muslim characteristics, as long as it does not contradict or oppose an Islamic rule that has been supported by obvious and clear text from the Qur’an, or an authentic hadith said by the Prophet (peace and blessings be upon him).
2. When a person chooses to come to a country it is implied that he will follow the laws and regulations of that country.
Regarding the case at hand, it seems that there is no Islamic rule that obliges the accused not to stand up in court. Here, standing up does not contradict the Islamic law. Yet, It was narrated in Al-Bukhari that a funeral procession passed before the Prophet (peace and blessings be upon him), and when he saw it he stood up (showing respect to it). Then it was said, it is a funeral of a Jew. The Prophet replied, “Isn’t it a soul!”
Keeping the differences aside, rising up for a judge in court is a form of showing respect not necessarily to the person himself, but to the values he/she carries, which are the values of justice.
We Muslims accept to live in this society and to deal with it, and by such actions we may separate and isolate ourselves from the society, and some groups may take advantage of such actions to promote the idea that Islam does not respect the regulations and laws, while Islam says, obedience to creature should not involve disobedience to the Creator.