In this chapter, we will finish the GUI handling and add a scheduled auto-refresh. The first challenge is to make the JavaFX stage look like a widget. For a widget, there should not be any taskbar icons and the stage should not be decorated. So we will implement a technique to hide both the taskbar icon and stage decoration. We will also handle drag-and-move support for the widget.
In the second part of this chapter, we will handle the automatic refresh of the widget data. Using ScheduledExecutorService, we can schedule a function to be called repeatedly at fixed intervals. We will create a single-threaded scheduled executor service.
ScheduledExecutorService: https://docs.oracle.com/javase/7/docs...
Github project: https://github.com/afsalashyana/Covid...
--
Genuine coder
#JavaFX
#GenuineCoder
#Widget
Смотрите видео Covid-19 Status Desktop Widget | JavaFX Tutorial 3/5 | Finishing GUI and Auto-Refresh Scheduler онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Genuine Coder 17 Апрель 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,881 раз и оно понравилось 31 людям.