posted 21 years ago
How about something like this:
//to get the source of the object upon which the user has performed the action
Object source = e.getSource();
if (source == someObj)
someObj.setLocation(newXpos, newYpos);
You could also get the X & Y positions, and just increment by some value to have the component dance across the page.