communications works with javafx