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.
Thanks for the replies. I will use your code Craig - it is a lot cleaner. Got the message about the listeners and if on panel or on frame. I removed this bit if(ZoomPanel.hasHit(p)) because I want to move the whole panel. The next stage will be to just move a line or circle.
Thanks for your help. You can close this topic if you wish.