This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dragging a Polygon shape and I have a corner anchor  RSS feed

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,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!