Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dragging a Polygon shape and I have a corner anchor

john kalaigian
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using the following code in my paintComponent

And I want to find out why I'm always getting an anchor at the origin when I'm dragging out my polygon. What I mean by anchor is a static line attached to my start point and dynamic line moving with my mouse cursor while i'm dragging. They both go away when I release the mouse and the proper polygon remains - But whats the deal with the lines while I'm dragging.
Thanks in advance,
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic