Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MY canvas never receives a paint message!

Status
Not open for further replies.

RcpAnimal

Programmer
Oct 12, 2001
2
GB
Hello I have a class which extends the canvas and is created from an applet. The applet calls the repaint() method in the main program loop

public void run()
{
//main program loop
while (true)
{
Thread.currentThread().yield();
try
{
Thread.sleep (REFRESH_RATE);
}
catch (Exception exc) { };
WebDisplay.repaint();
}
}

Now my WebDisplay never ever ever ever ever receieves the paint message. Im more than willing to email my code to someone but i urgently need to solve this problem

Thanks all
 
Hi,

if you haven't already solved your problem you can E-Mail me your whole app and I will have a look at it.

tommy_hunziker@yahoo.de

Cheers, Tom
 
I have solved the problem. I was not adding my canvas to the applet.

Thanks for the offer though
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top