Giter Club home page Giter Club logo

Comments (5)

moacirrf avatar moacirrf commented on July 18, 2024

I will try resolve this on my fork.

from jfxtras-styles.

buko avatar buko commented on July 18, 2024

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.

dukke avatar dukke commented on July 18, 2024

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.

dukke avatar dukke commented on July 18, 2024

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.

dukke avatar dukke commented on July 18, 2024

This is a duplicate of issue #11

from jfxtras-styles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.