Hi,
I have created a simple JFrame with components displaying some data on it. I want to reload the data after a specific time interval say one minute. Does a refresh serve my purpose? How to implement this?

Regards,
dalu

08-22-2011, 09:04 AM

Junky

Use a Swing Timer for your time interval. Update your fields etc with the new data. Call repaint.

08-22-2011, 12:41 PM

DarrylBurke

Or maybe not call repaint, unless you are using some custom component that doesn't update its visual representation correctly.