• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dragging a Polygon shape and I have a corner anchor

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
John
 
reply
    Bookmark Topic Watch Topic
  • New Topic