As you might know I've started another JavaFX controls library named Enzo which you can find on github.
This project started as a playground for JDK8 and JavaFX8 and in the meantime it contains some controls that I would like to share with you.
So this is the first post of a series about the Enzo controls. The idea is to explain one control with each post and because it's my favourite control I will start with the Lcd control.
The Lcd control can be found in the package: eu.hansolo.enzo.lcd
If you instantiate a Lcd control you will get something like this...
This is the simplest version of the Lcd control only showing a value. The control offers many different features and if everything is enabled it will look like this...
As you can see there are different kind of symbols and text fields available.
On the next screenshot you will find the name of each feature...
Most of the above features could switched on/off (except the backgroundText which depends on the used valueFont). Because all controls in Enzo will come with a Builder (I liked the builders so I decided to add them to my controls) the code to instantiate the full blown lcd will look like this...
Lcd lcd = LcdBuilder.create()
As you can see in the code above there is a styleClass method in the builder where you can define the visual appearance of the Lcd control. And because there are so many nice Lcd displays out there I've tried to cover as many as I've found.
To give you an overview over all available styles I created another screenshot for you...
As you can see there are a lot of different styles available and all of them are defined in CSS. You will find more realistic versions and also some flat ui styled ones.
In case you don't want to use a style at all you can simply switch of the background by calling setBackgroundVisible(false). With this feature you could use the Lcd also on your own backgrounds which sometimes might be useful.
You will also find features like the signal, trend, alarm or battery indicator which you can switch on or off by calling
The signal, trend and battery indicator also have getters and setters to set their value. So to set the battery to another value you can call
- setBatteryCharge(double 0...1)
and for the signal indicator please call
- setSignalStrength(double 0...1)
The trend indicator has 6 different states that you can call, the states are
and the method to set one of these is
Keep in mind that you have to take care about the trend which means you have to check whether it's rising or falling, so you can implement your own algorithm to calculate the trend.
You have 5 different fonts available to visualize the main value of the Lcd control. The available fonts are
which will look like this
Another maybe useful feature is the ability to blink the value of the Lcd control by calling setBlinking(true). This feature can be used to indicate that a threshold was exceeded or simply to grab the attention of the user.
The Lcd control supports three different number systems that you can use which are
which will display the current value in the choosen number system.
There is no scrolling or animation implemented for the text but this might come in future releases of the control.
Keep in mind that the text mode will not work with the Lcd.LcdFont.LCD because this is a 7-Segment font which has no characters.
Here are some examples
You can also use the text mode in combination with all the other features as on the following picture
I hope I covered most of the features of the Lcd control and if you have a special need for an additional feature you could either let me know and hope that I'll find some time to implement it or you can fork the project on bitbucket and do it yourself... :)
If you are interested in the sources you can find them on bitbucket at
That's it for today...so keep coding...