In this tutorial, we will create the GUI of the widget using the Scene Builder tool. The GUI shows 2 sections of data. The first section shows total-cases, recovered-cases, and total-deaths in the whole world due to Covid19. The second section shows the same values for a given country. We can get COVID data for almost all countries from the API. As of this chapter, the country field is hardcoded within the program.
We will be making use of a library called Ikonli to add an icon to our program. We will also make use of CSS styling to properly style our widget. I have used a monospace font named 'Hack'.
Ikonli: https://github.com/kordamp/ikonli
Github project: https://github.com/afsalashyana/Covid...
Font: https://sourcefoundry.org/hack/
--
Genuine coder
#JavaFX
#GenuineCoder
#Widget
Смотрите видео Covid-19 Status Desktop Widget | JavaFX Tutorial 2/5 | Designing Widget GUI with Scene Builder онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Genuine Coder 17 Апрель 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,277 раз и оно понравилось 31 людям.