java.lang.ClassCastException: com.sun.javafx.geom.BoxBounds cannot be cast to com.sun.javafx.geom.RectBounds at com.sun.javafx.sg.prism.NGText.computeContentBounds(NGText.java:1097) at com.sun.javafx.tk.quantum.PrismTextHelper.computeBounds(PrismTextHelper.java:24) at javafx.scene.text.Text.impl_computeGeomBounds(Text.java:844) at javafx.scene.Node.getGeomBounds(Node.java:2457) at javafx.scene.Node.getLocalBounds(Node.java:2402) at javafx.scene.Node.getTransformedBounds(Node.java:2357) at javafx.scene.Parent.impl_computeGeomBounds(Parent.java:1091) at javafx.scene.layout.Region.impl_computeGeomBounds(Region.java:1525) at javafx.scene.Node.getGeomBounds(Node.java:2457) at javafx.scene.Node.getLocalBounds(Node.java:2423) at javafx.scene.Node.getTransformedBounds(Node.java:2357) at javafx.scene.Parent.impl_computeGeomBounds(Parent.java:1091) at javafx.scene.Node.getGeomBounds(Node.java:2457) at javafx.scene.Node.getLocalBounds(Node.java:2423) at javafx.scene.Node.updateTxBounds(Node.java:2492) at javafx.scene.Node.getTransformedBounds(Node.java:2353) at javafx.scene.Parent.recomputeBounds(Parent.java:1360) at javafx.scene.Parent.impl_computeGeomBounds(Parent.java:1070) at javafx.scene.layout.Region.impl_computeGeomBounds(Region.java:1525) at javafx.scene.Node.updateGeomBounds(Node.java:2479) at javafx.scene.Node.getGeomBounds(Node.java:2441) at javafx.scene.Node.getLocalBounds(Node.java:2423) at javafx.scene.Node.updateTxBounds(Node.java:2492) at javafx.scene.Node.getTransformedBounds(Node.java:2353) at javafx.scene.Parent.recomputeBounds(Parent.java:1360) at javafx.scene.Parent.impl_computeGeomBounds(Parent.java:1070) at javafx.scene.layout.Region.impl_computeGeomBounds(Region.java:1525) at javafx.scene.Node.updateGeomBounds(Node.java:2479) at javafx.scene.Node.getGeomBounds(Node.java:2441) at javafx.scene.Node.getLocalBounds(Node.java:2423) at javafx.scene.Node.updateTxBounds(Node.java:2492) at javafx.scene.Node.getTransformedBounds(Node.java:2353) at javafx.scene.Parent.recomputeBounds(Parent.java:1360) at javafx.scene.Parent.impl_computeGeomBounds(Parent.java:1070) at javafx.scene.layout.Region.impl_computeGeomBounds(Region.java:1525) at javafx.scene.Node.updateGeomBounds(Node.java:2479) at javafx.scene.Node.getGeomBounds(Node.java:2441) at javafx.scene.Node.getLocalBounds(Node.java:2423) at javafx.scene.Node.updateTxBounds(Node.java:2492) at javafx.scene.Node.getTransformedBounds(Node.java:2353) at javafx.scene.Node.impl_updatePG(Node.java:393) at javafx.scene.Parent.impl_updatePG(Parent.java:123) at javafx.scene.layout.Region.impl_updatePG(Region.java:1236) at javafx.scene.Node.impl_syncPGNode(Node.java:372) at javafx.scene.Scene$ScenePulseListener.synchronizePGScene(Scene.java:1477) at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:1578) at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:268) at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:358) at com.sun.javafx.tk.quantum.QuantumToolkit$10.run(QuantumToolkit.java:294) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29) at com.sun.glass.ui.win.WinApplication$1$1.run(WinApplication.java:49) at java.lang.Thread.run(Unknown Source)