What is the best strategy to create a screen part of a java swing application, that repaints itself every minute with new information from a web page? (A yahoo stock quote for example)
Thank you.
What is the best strategy to create a screen part of a java swing
Share
1. Create a Separate thread apart from the GUI thread(ie Event Dispatcher Thread).
2. Make it call the service that give the yahoo stock with delay of 60 sec, use
Thread.sleep(60000);3. call
repaint();Edited: