This is a beginner question for java graphics using the awt package. I found this code on the web to draw some simple graphics.
import java.awt.*; public cla
Actually you never invoke paint mathod yourself. It gets called automatically whenever the content pane of your frame needs to be repainted. It happens when your frame is rendered for the first time, resized, maximized (after being minimzed), etc.