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
Watch video Covid-19 Status Desktop Widget | JavaFX Tutorial 3/5 | Finishing GUI and Auto-Refresh Scheduler online without registration, duration hours minute second in high quality. This video was added by user Genuine Coder 17 April 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,881 once and liked it 31 people.