Judge jails editor who criticized courthouse