Sorry it took me so long to see your post.
I'm embarrassed to say that I'm not sure if all of them are elected, but I know some are.
I don't know how the entire system operates. I know there are always judges on the ballot though. Sorry......I plead ignorant.