changing swing gui to fx