The capital itself is more likely refer to the palace, a walled compound called pura in Sanskrit, or in local Javanese as karaton or kadatwan, this is where the king and his family reside and rule his court.
Most of the time, the court of the Medang Kingdom was located in Mataram, possibly located somewhere in Muntilan or the Prambanan Plain near modern Yogyakarta.