0

I want to accomplish this behavior in an application which is running during a whole week. I have my methods to repaint and re validate the information I'm displaying, and currently I call the repainting routines when the user presses a button, but how can I make these operations execute automatically at a certain time everyday so my application can just stay unattended in the meanwhile?

Ces
  • 343
  • 3
  • 13

1 Answers1

2

but how can I make these operations execute automatically at a certain time everyday

With javax.swing.Timer you should be able to do what you want.

The Timer from the Swing package has been designed to work well with the event-dispatching thread and to reduce the needed resources.

Puce
  • 37,247
  • 13
  • 80
  • 152