Need help in Java graphics

Discussion in 'OT Technology' started by Epik High, Jan 24, 2006.

  1. Epik High

    Epik High Active Member OT Supporter

    Mar 12, 2004
    Likes Received:
    San Francisco
    'm trying to learn graphics using Java (please don't comment on how unneccessary or lame it is) and I would like the user to click in a frame to set up the points, then when the user right clicks, it indicates that it is the last point and the points will be connected and filled in with color.

    I have that working already, but now I want to implement buttons that allow the user to rotate the object left and right, and scale.

    I have everything set up, and the rotating and scaling needs to be done using threads. I am using user coordinates as oppossed to actual device coordinates, and my paint method will take care of the conversion.

    My question is, how am I going to use threads to change coordinates and then redraw? Threads are separate classes so if I import the class that the paint method is in, it will create a new frame.

    If anyone is serious about helping, I can copy and paste the code. Thanks!

Share This Page