I am using Robot to automate GUI testing somewhat. I can have the bot drag a JXTable column from left to right to move it, but when I do the same from right to left, the column pops back to its original position when the mouse is released. Any ideas?:confused:

public void doDrag(Point p1, Point p2){
mouseMove(p1);
doMousePress();
mouseMove(p2);
doMouseRelease();
}

public void doMousePress(){
this.mousePress(InputEvent.BUTTON1_MASK);
}
public void doMouseRelease(){
this.mouseRelease(InputEvent.BUTTON1_MASK);
}
public void mouseMove(Point p) {
this.mouseMove(p.x, p.y);
}