This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Help with getting new points Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Help with getting new points" Watch "Help with getting new points" New topic
Author

Help with getting new points

Koh Khai Huat
Ranch Hand

Joined: Aug 05, 2005
Posts: 100
Hi guys,

I am doing a project that needs me to draw a triangle on the screen and rotate it. The rotate part is fine but after i rotate the shape i could not get the new cordinates of the new triangle.Please advice thanks.

i tried to cast the shape back to polygon and get the points but i had a cast class exception and that is the last solution i have got please help thanks in advance
this is the code:


regards
Huatz


if (!WorkHard){
System.out.println("Fail!!!");
}
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Koh Khai Huat
Ranch Hand

Joined: Aug 05, 2005
Posts: 100
thanks for the help
Koh Khai Huat
Ranch Hand

Joined: Aug 05, 2005
Posts: 100
thanks for the help
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Help with getting new points
 
Similar Threads
Access a variable
Shape.getPathIterator() called w/ null AffineTransform
Trying to make a shape.
loops in java to produce shapes
collision detection