Comments (10)
Hi again Pavel,
It''s probably because you're not using a compatible Java version. JMetro is meant for Java 8 and below only. You mentioned also using java 10 (didn't really understand exactly which java version you're using)?
Skins have changed place in JavaFX 9 and above, so a Class not found exception would happen in this case.
Cheers,
from jfxtras-styles.
Hi again @dukke,
Default i run with Java 10, but i create cmd file with path to Java 8 and run with Java 8, but, application also crash. It maybe because i have JDK 10 and JDK 8. But compile with JDK8. I don't know, good luck with fixing it :)
from jfxtras-styles.
What I'm saying is that this probably isn't a JMetro issue but rather an issue with the fact you're using a version of Java greater or equal than Java 9, in this case you're using Java 10.
You need to compile and run with Java 8 or below.
The skins have changed packages between Java 8 and Java 10, so you'll get this Class not found exception. This will happen with JMetro or any JavaFX library that is made for Java 8 and makes use of skins in "com.sun.javafx.." package.
In the future I'll most probably migrate JMetro to Java 11. Right now, unfortunately, I don't have the resources (time, etc) to maintain two separate versions of JMetro for java 8 and for java9+. Java 8 is still by far the most used version of Java, so for the recent future I plan to stick with it.
I'll close this issue for now as won't fix. The problem is probably the fact you're using two versions of java at the same time. Try to use Java 8 only and tell me how it goes.
Thanks Pavel :)
from jfxtras-styles.
No problem @dukke :) Thanks for attention! 👍
from jfxtras-styles.
from jfxtras-styles.
@dukke not, currently my application crash if i add your library. But without library also work :D
from jfxtras-styles.
from jfxtras-styles.
@dukke i compile project with Java 8, because TornadoFx support only Java 8 as your library. I run with Java 8 and 10. See video please:)
https://www.youtube.com/watch?v=41iTYfNcz9c&feature=youtu.be
from jfxtras-styles.
from jfxtras-styles.
@dukke yes.
java.lang.NullPointerException
at com.sun.javafx.scene.control.skin.TextFieldSkin.lambda$new$199(TextFieldSkin.java:251)
at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:349)
at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
at javafx.beans.property.ObjectPropertyBase.fireValueChangedEvent(ObjectPropertyBase.java:105)
at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:112)
at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:146)
at javafx.css.StyleableObjectProperty.set(StyleableObjectProperty.java:82)
at javafx.scene.control.TextInputControl$3.set(TextInputControl.java:228)
at javafx.scene.control.TextInputControl$3.set(TextInputControl.java:197)
at javafx.css.StyleableObjectProperty.applyStyle(StyleableObjectProperty.java:68)
at javafx.scene.control.TextInputControl$3.applyStyle(TextInputControl.java:212)
at javafx.scene.control.TextInputControl$3.applyStyle(TextInputControl.java:197)
at javafx.scene.CssStyleHelper.transitionToState(CssStyleHelper.java:774)
at javafx.scene.Node.impl_processCSS(Node.java:9189)
at javafx.scene.Parent.impl_processCSS(Parent.java:1249)
at javafx.scene.control.Control.impl_processCSS(Control.java:868)
at javafx.scene.Parent.impl_processCSS(Parent.java:1280)
at javafx.scene.Parent.impl_processCSS(Parent.java:1280)
at javafx.scene.Parent.impl_processCSS(Parent.java:1280)
at javafx.scene.Node.processCSS(Node.java:9056)
at javafx.scene.Scene.doCSSPass(Scene.java:545)
at javafx.scene.Scene.access$3600(Scene.java:159)
at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2392)
at com.sun.javafx.tk.Toolkit.lambda$runPulse$29(Toolkit.java:398)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:397)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:424)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:518)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:498)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:491)
at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$403(QuantumToolkit.java:319)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
at java.lang.Thread.run(Unknown Source)
The video shows that there are a lot of such exceptions; this is one of them.
from jfxtras-styles.
Related Issues (20)
- FlatAlert style not being applied HOT 1
- Button, ToggleButton - Button does not show border on hover when it is focused HOT 1
- Maven Central Repository Does Not Install Correctly HOT 2
- TextField - TextField with "glitched" background when disabled and inside Dialog
- TextFields - Non-Editable TextFields shouldn't have a 'clear' button HOT 2
- Exception "Failed to load skin 'impl.jfxtras.labs.internal.scene.control.skin.ListSpinnerCaspianSkin'" HOT 2
- JMetro NPE when getOverridingStylesheets().add(source). Should throw instructive exception HOT 2
- JMetro: NoSuchMethodError with no code written HOT 16
- DatePicker - changes height when focused HOT 2
- Spurious classifier tags in dependencies in pom.xml HOT 3
- Style a WebView Web Page using JMetro Theme Style HOT 1
- JMetro: JavaFX 16 JDK17 NullPointerException HOT 3
- Some suggestions of Jmetro on Windows 11 HOT 1
- TreeView, TableView, ListView, TreeTableView - not sure if we need styles for pressed:selected and pressed
- New windows ui (winui3) implement HOT 1
- ProgressBar - Switching from indeterminate, to real and finally back to indeterminate doesn't animate
- Charts lose tick label color after applying jmetro HOT 6
- Scrollpane shrink contents when focused
- Wrong Spinner text color inside TabPane HOT 5
- JFXCentral Badge
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jfxtras-styles.