Metro style Toggle Button for Java (JMetro)

Toggle button metro style:

You can get it at the usual places.

JMetro has  been recently blatantly copied by someone else who has than tried to make  it look like it was his own work. JMetro is under BSD license as are other components/controls present in the JFxtras repository, BSD license legally requires you to give credit to the original owner of the work.

There is no problem in using the work on commercial/non-commercial projects and on creating derivative work as long as you give credit to the original creator. Since I’m giving away my work for free I think the least I can ask for is some credit.

Metro style Combo Box for Java (JMetro)

This update brings the ComboBox control to the JMetro library. The following pictures show the light and dark theme:

There is a slight miss placement of the popup. Which according to Jonathan Giles has been fixed on JavaFX 8.

Metro style Scroll Pane for Java (JMetro)

Just a small update based on the metro style I’ve created for the scroll bars, here’s the ScrollPane:

I’ve also uploaded the code to the jfxtras-styles repository, so you can now get it from there also.

Metro style Scroll Bar for Java (JMetro)

Here is the Scroll Bar control with a metro style (light and dark theme):

ScrollBarLightThemeScrollBarDarkTheme There is a bug on javafx that won’t allow to change the style of the thumb when it is pressed.

The css code to style the thumb on this state is present on the stylesheets so  the pressed state style of the thumb will become visible, whenever the bug disappears from the javafx runtime.

As a reminder, all you need to do to style your whole application with this metro style is to add the desired stylesheet (the dark or the light theme file) to the root node of the scene.

One thing that is on the to-do list for this project is changing the controls sizes to better accommodate touch. Some controls are too small right now for that.

On the future I’ll be adding this to the JFxtras repository so besides being able to get it from the usual place you’ll also be able to get it from there.