This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes drawing polygon and calculate area!!!  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "drawing polygon and calculate area!!!  " Watch "drawing polygon and calculate area!!!  " New topic

drawing polygon and calculate area!!!

dedo mraz

Joined: Aug 12, 2013
Posts: 1
i have this code which allows you to draw polygon but i don't know how to implement the formula to calculate the area of the polygon (the formula is in the end of the code).

Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 1035

I think the 'C' function to calculate area is flawed. You should go back to the site you obtained it from and make sure you have copied it correctly. Pay particular attention to the signs of the terms.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: drawing polygon and calculate area!!!
Similar Threads
Why does it not show the new coordinates?!!??!!
Java swing
Ambiquity while drawing multiple shapes on Jpanel
Problem withe Jpanel while drawing shapes
Adding a custom component to a layout?