Implement port-set-mirror-region

- this lets us set the size of Java components

- also factor out adding children to Java components