I am trying to implement a swing program, with JAVA 2D elements. As the method
void paint (Graphics g) is always executed automatically when the frame is
shown, I decided to call it something else ( say, void drawgraphic (Graphics g).
I don't want that it will be executed automatically. I connected it with an
action listener..
My problem, is how should I give the arguments Graphic g to this manually
implemented method. Should I instantiate any object of typ graphics and then
give it as arguments . And I don't how to do that..