Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JFXTimePicker unable to change prompt text color and ClassCastException #1255

Open
FelipeAumannRS opened this issue Jan 31, 2023 · 0 comments

Comments

@FelipeAumannRS
Copy link

JFXTimePicker always throws a ClassCastException:

Exception in thread "JavaFX Application Thread" java.lang.ClassCastException: class com.jfoenix.controls.FakeFocusJFXTextField cannot be cast to class com.sun.javafx.scene.control.FakeFocusTextField (com.jfoenix.controls.FakeFocusJFXTextField is in unnamed module of loader 'app'; com.sun.javafx.scene.control.FakeFocusTextField is in module javafx.controls@19 of loader 'app') at javafx.controls@19/javafx.scene.control.skin.ComboBoxPopupControl.lambda$new$2(ComboBoxPopupControl.java:140) at javafx.base@19/com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:360) at javafx.base@19/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80) at javafx.base@19/javafx.beans.property.ReadOnlyBooleanPropertyBase.fireValueChangedEvent(ReadOnlyBooleanPropertyBase.java:78) at javafx.graphics@19/javafx.scene.Node$FocusPropertyBase.notifyListeners(Node.java:8155) at javafx.graphics@19/javafx.scene.Node$17.notifyListeners(Node.java:8226) at javafx.graphics@19/javafx.scene.Node.notifyFocusListeners(Node.java:8176) at javafx.graphics@19/javafx.scene.Scene$KeyHandler.setWindowFocused(Scene.java:4081) at javafx.graphics@19/javafx.scene.Scene$KeyHandler.lambda$new$0(Scene.java:4103) at javafx.base@19/com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:136) at javafx.base@19/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80) at javafx.base@19/javafx.beans.property.ReadOnlyBooleanPropertyBase.fireValueChangedEvent(ReadOnlyBooleanPropertyBase.java:78) at javafx.base@19/javafx.beans.property.ReadOnlyBooleanWrapper.fireValueChangedEvent(ReadOnlyBooleanWrapper.java:103) at javafx.base@19/javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:111) at javafx.base@19/javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:145) at javafx.graphics@19/javafx.stage.Window.setFocused(Window.java:702) at javafx.graphics@19/javafx.stage.Window$1.setFocused(Window.java:160) at javafx.graphics@19/com.sun.javafx.stage.WindowHelper.setFocused(WindowHelper.java:112) at javafx.graphics@19/com.sun.javafx.stage.WindowPeerListener.changedFocused(WindowPeerListener.java:64) at javafx.graphics@19/com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:126) at javafx.graphics@19/com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:40) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at javafx.graphics@19/com.sun.javafx.tk.quantum.GlassWindowEventHandler.lambda$handleWindowEvent$4(GlassWindowEventHandler.java:178) at javafx.graphics@19/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:424) at javafx.graphics@19/com.sun.javafx.tk.quantum.GlassWindowEventHandler.handleWindowEvent(GlassWindowEventHandler.java:176) at javafx.graphics@19/com.sun.glass.ui.Window.handleWindowEvent(Window.java:1248) at javafx.graphics@19/com.sun.glass.ui.Window.notifyFocus(Window.java:1227) at javafx.graphics@19/com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at javafx.graphics@19/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184) at java.base/java.lang.Thread.run(Thread.java:833)

Also, there's no way no change its prompt text color.

Is there any incoming update addressing these issues?
Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant