Print at Dec 21, 2025, 2:38:57 AM

Posted by bandara at Jul 11, 2011, 2:44:28 PM
Re: how to get area of room
Sir, do i have to use any actionListners to do it, or is there any other class/object that i have to create, before calling getArea.
I'm confusing, how that real values, come to method when calling it.
I "sout" getPoints using "for" loop, but it returned values which i call when create object of Room (i.e. float s1[][] = { { 0, 0 }, { 0, 4 }, { 4, 4 }, { 4, 0 } };)

So, can you please tell me how can i request the area of the displayed room.