Covid-19 Status Desktop Widget | JavaFX Tutorial 3/5 | Finishing GUI and Auto-Refresh Scheduler

Опубликовано: 14 Март 2025
на канале: Genuine Coder
1,881
31

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