When soldiers and tanks rolled onto the streets of Bangkok last week and the king appeared on television with the generals , it was not the first time Thailand 's wildly popular monarch had given his blessing to a military takeover .