Comments (5)
I will try resolve this on my fork.
from jfxtras-styles.
A bit more info:
Just ran into a similar error on JDK 10.
Caused by: java.lang.ClassNotFoundException: com.sun.javafx.scene.control.skin.TextFieldSkin
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
... 78 more
This seems to happen because these classes no longer exist in JDK 10. The Controls FX ran into a similr problem earlier and it seems like this JEP 253 moved these classes into a different package, javafx.scene.control.skin.*.
Unfortunately this makes JMetro and its beautiful dark theme unusable on JDK 9+ because JMetro has a direct dependency on the com.sun.javafx skin classes and there are several places in the code where they are directly extended eg https://github.com/JFXtras/jfxtras-styles/blob/master/jmetro/src/main/java/impl/jfxtras/styles/jmetro8/TextFieldWithButtonSkin.java. There's no real workaround except a new version of JMetro that works with the relocated classes.
from jfxtras-styles.
Apologies for the late reply. Unfortunately due to a configuration issue I wasn't getting any notifications when new issues were entered in this project.
from jfxtras-styles.
The project focus is on Java 8 due to my limited time and the fact that Java 8 is currently the most used version of Java.
Unless someone is sponsoring the maintenance of JMetro in another version of Java besides Java 8 or people file PRs I won't have time for that.
Having said that, I did have the attention to make JMetro easy to port by not using internal API and/or API that would be deprecated in Java 9+.
Skins have became public API, but the package is different. It should be a question of just changing the package. The harder work would be in "modularizing" the project.
Thanks.
from jfxtras-styles.
This is a duplicate of issue #11
from jfxtras-styles.
Related Issues (20)
- 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
- The setFill for the Text component does not execute correctly HOT 3
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.