[java] repainting

Started by
0 comments, last by H_o_p_s 18 years, 5 months ago
i am having trouble accessing my paint method. i have two classes, the first class is the class with my main method and the paint. My second class is the class with all my mouseEvents in it. my problem is that after I have handled my mouse events, i cannot access my paint method to repaint() because the paint method cannot be accessed by a static method. Is there a way around this, or will i have to combine the two classes together?
Advertisement
You have to have a reference of the object before you call the repaint.
BRING BACK THE BLACK (or at least something darker)

This topic is closed to new replies.

Advertisement