Paint() and Repaint in applet
Hi all,
I'm new to java and I'm writing a videopoker applet.
I need to print Imgs and repaint screen out of the applet class.
I tried with no errore but with no results!
Example code:
publicclass MyAppletextends Appletimplements MouseListener, Runnable
{
class my appletextends Appletimplements Runnable, Mouselistener
{
//declarations, init ecc....
modify mymodify;
publicvoid mouseReleased(MouseEvent e)
{
mymodify.change();
}
void paint(Graphics g)
{
g.drawImage(Img,0,0,this);
}
}
class modifyextends mioapplet
{
publicvoid change()
{
//modify Img.....
repaint();
}
}
Could anyone help me?
I also would to put the class in a separate file to keep the project clean.
any problem with this?
Thanks in advance
Federico

