hello,
i tried to translate this way:
public void paint(graphics g){
g.translate(-x,-y)
// paint something
g.translate(x,y)
}
the first translate seems to work perfect but later the origin of the graphics is somewhere in the middle.
By the Way:
I’m changing x,y with a MouseListener and i’m using a thread for calling paint().
but why is the origin wrong? i’m translating and translating back so how can the origin change?
Greetz