This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
What you are doing is setting xpos and ypos, but you are not doing anything with them.
Try putting this is your mousePressed() method, press your mouse, and see what happensPlease find the code button and use tags to maintain your indentation. This sort of thing is usually discussed in the Swing forum, so I think I ought to move you there.
[/edit]Spelling errors and change mouseDragged to mousePressed[/edit] [ October 17, 2008: Message edited by: Campbell Ritchie ]