aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Help with getting new points Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
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
 
wood burning stoves
 
subject: Help with getting new points