Monday, August 15, 2011

JAVA - how do I draw a polygon object from a cl is not a subcl of jframe or jpanel?

I'm remaking a version of Asteroids for a project and I'm supposed to create a method in my Asteroid cl which draws the individual asteroid. The problem is that the asteroid cl is not a subcl of Jframe or JPanel so I don't know how to draw it from this cl. I am calling this method from an update() method so I won't have a graphic to pass it as a parameter. Any ideas?

No comments:

Post a Comment