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

[1775 byte] By [fedeka] at [2007-11-27 4:16:54]
# 1
Well, that code wouldn't even compile. "my applet" is not a valid class name.Why are you creating an inner class extending Applet, when the outer class already extends Applet?Why are you creating the inner "modify" class? What is its purpose?
paulcwa at 2007-7-12 9:23:29 > top of Java-index,Desktop,Core GUI APIs...