Ahed Tamimi, 17, appeared in an Israeli military court on Tuesday for the start of her trial on charges of slapping and kicking an Israeli soldier last December.
A large crowd of journalists had shown up to cover the trial of Tamimi, whose case has gained worldwide attention.
"I don't think this is in the interest of the minor" military judge Lt Col Menachem Lieberman said before having the courtroom cleared of everyone but her family and lawyers.
"They understand that people are interested in Ahed's case, they understand that her rights are being infringed on and her trial is something that shouldn't be happening", lawyer Gaby Lasky said.
Her father Bassem, the only member of her family in the courtroom, said to her: "How are you?"
"The court decided what is best for the court, and not what is good for Ahed", Lasky later told reporters, accusing the judge of trying to keep the world from watching.
After the prosecution read the 12-count indictment, the trial was adjourned until next month.
Lasky added that she would make a new request to have the trial opened. Palestinians say her actions embody their David vs. Goliath struggle against a brutal military occupation, while Israel portrays them as a staged provocation meant to embarrass its military.
"13 de febrero de 2018, 16:44United Nations, Feb 13 (Prensa Latina) UN human rights" experts were alarmed today over the imprisonment of Palestinian teenager Ahed Tamimi, after an incident with Israeli occupying forces, and demanded her prompt release. Protests often ended in stone-throwing clashes.
"By refusing to release Ahed Tamimi since her arrest on 19 December, the Israeli authorities have shown nothing but contempt for their obligations under worldwide law to protect children", Magdalena Mughrabi, deputy director of AI's Middle East and Africa chapters, said. Tamimi has been in custody since her arrest in mid-December.
The high-profile trial of Tamimi, one of an estimated 300 Palestinian minors in Israeli jails, has become the latest arena for the long-running battle between Palestinians and Israelis over global public opinion.
The Convention on the Rights of the Child, which Israel has ratified, states that minors can only be deprived of liberty as a last resort and for the shortest appropriate time, said Michael Lynk, a United Nations special rapporteur on human rights in the Palestinian territories, in a statement.
The Israeli military said the soldiers were in the area to prevent Palestinians from throwing stones at Israeli motorists. One famous photo shows her as a 12-year-old raising a clenched fist at a soldier towering over her.
More luridly, Ben Caspit, a prominent journalist, made a rather shocking assertion of how Ahed's type of defiant behavior shockingly deserves to be addressed outside the framework of law: "In the case of girls, we should exact a price at some other opportunity, in the dark without witnesses or cameras".
United Nations experts have pointed out that Tamimi was arrested in the middle of the night by armed soldiers, and questioned by Israeli security officials without a lawyer or family members present.
The scuffle took place amid clashes and protests against US President Donald Trump's controversial recognition of Jerusalem as Israel's capital.
Eleven more Palestinians were arrested in Eastern Jerusalem and the cities of Nablus, Jenin and Qalqiliya, he said. Two Israelis have been killed since then.
Palestinians and worldwide supporters have flooded social media with praise and messages of solidarity.