java code with fx