if u are working with ready to program here is the code,,
java Code:
import java.applet.*;
import java.awt.*;
import java.util.*;
{
static Image doubleBufferImage;
// the hidden buffer
public void init ()
{
goThread.start ();
}
public void update
(Graphics g
) //update does the dubble buffering. {
if (doubleBufferImage == null) // if this is the first time, create the buffer
{
doubleBufferImage = createImage (this.getSize ().width, this.getSize ().height);
doubleBufferG = doubleBufferImage.getGraphics ();
}
doubleBufferG.setColor (getBackground ()); // clear the screen
doubleBufferG.fillRect (0, 0, this.getSize ().width, this.getSize ().height);
doubleBufferG.setColor (getForeground ()); // draw to the hidden buffer
paint (doubleBufferG);
g.drawImage (doubleBufferImage, 0, 0, this); // move the hidden buffer to the screen
}
public void run ()
{
while (Thread.
currentThread () == goThread
) {
repaint ();
}
}
{
g.drawString (d.getHours () + ":" + d.getMinutes () + ':' + d.getSeconds (), 10, 10);
}
}
And that is it and tell Mr.Kurz i said hi
