toFront java-side now working