conversion to javafx on mps206