japplet - refreshing windows
Hi
I have a small japplet that gets data from a webserver
the data is a voltage reading that changes when I turn a button.
The applet shows the data, but only once.. it does not update.
I am guessing I need some sort of refresh, update, repaint but I don't know what code to use.
so far my paint method is VERY simple..
Code:
public void paint(Graphics g)
{
// simple text displayed on applet
g.setColor(Color.black);
g.drawString(output, 20, 20);
}
How can I update the applet over and over and over again so it just runs showing the data from the webserver "live" ?