yes it is a dragonfly. I think the species is Neurothemis ramburii. They are very common in the Indonesian archipelago.