Q: How to make a image when go offset a window, appear at the other side? i know that the question is a bit confused, but in Java, i want to, example, when a image go less than 0 x of the panel, appear smoothly at another side, like a loop.
I'm bit newbie at this hehe, i dont have enought reputation to post images, but there ya go the link.
http://i.stack.imgur.com/gwzno.png
public void move(){

    x += dx;
    y += dy;

    if(x + dx < 0) dx = 0;
    if(y + dy < 0) dy = 0;
    if(x + dx > getWidth()) dx = 0;
    if(y + dy > getHeight()) dy = 0;

}

this is the movement of my word's method.
