migrate from swing to javafx 2 changes