Creating a JavaFx like API