Java: Using graphics component within an ActionListener
I have two separate class and driver files, and in the class file I create the paint method: public void paint(Graphics g){ g.drawLine(...... .... //along with all of my other draw commands } Further down in the code, I create a JButton and within this button's action listener I don't know how to use a Graphics object to create more graphics in the JFrame. Should I be adding something to my driver to make this happen, or is there a way to use these graphics within my action listener? Thank you, and any help is appreciated. Paul Samsotha You need to draw everything within the paint method. The