changed ChatMessageFactory from ScalaFX to JavaFX