JavaFX themes / styles that can be used to give applications a different look and feel.
[Also check out Transit Theme another theme I've created that builds upon lessons learned while developing JMetro]
Documentation of JMetro can be found in this link: JMetro Java, Javafx theme documentation.
This is a “pluggable” JavaFX theme.
This means there’s zero coupling because this theme doesn’t define any new Controls and the developer only needs to run 1 line of
code to set the theme (this is all the coupling you’ll get).
It adds features to the existing JavaFX controls that you regularly use (controls from the standard JavaFX API or from known third
party libraries) by leveraging the JavaFX Skin API.
Check documentation for a deeper dive.
You can get the jar from Maven Central or download it from the releases tab
Here are examples for Gradle and Maven (replace version number with the version you want):
implementation 'org.jfxtras:jmetro:11.6.15'
<dependency>
<groupId>org.jfxtras</groupId>
<artifactId>jmetro</artifactId>
<version>11.6.15</version>
</dependency>
We have two important branches:
The master branch is being tested using JavaFX 11.
The jmetro-samples subproject has samples that you can run and also check out how to use JMetro.
The "jdk-8" branch has the code for versions 8 of JMetro which are meant to run with Java 8. It is in maintenance mode, no active development is ongoing. If you want me to add features or make backports from the "master" branch please consider sponsoring those changes.
We welcome contributions via PR.
Before submitting a PR, please file an issue for prior discussion. This will avoid you wasting time with a PR that
might not be approved because, for instance, it might be outside the intended scope of the project.
When filing bugs it's most often good practice to attach a small sample app (as small, simple and with the fewest lines of code as possible). This app when executed, should show the bug happening.
The reason for this is the limited amount of resources and time I have and also because in the process of filing a bug, developers sometimes discover that the bug isn't in the library but somewhere else.
Without a small example app the issue might be closed prematurely.
Please show pictures of your application that is using JMetro or share it through social media. This is very important for us
to know how users are effectively using it and make adjustments accordingly, to make JMetro better, and, only if you allow it, to showcase example uses.
Seeing JMetro being used is also always a source of motivation to keep working on it.
JFXtras uses the new BSD license