I want to write a time specific actionListener which triggers some action at a specific time. I know that there is ScheduledExecutorService in java which can be used to trigger a action at some specific time but I want to try actionListener.
Let suppose I create a txt file and want to remove it after an hour. How can I do it by actionListener ? any example code ?