It doesn't work. I wander where is the mistake. I just want to draw a line.
The wind in June reconciles my sadness and the rain in July makes my dream. In Auguest, I turn to a green fruit with your gorgeous shine. In September, the mature fruit you see is the flower you see in May.
Since this appears to be a GUI-related question, I shall move it to our GUIs forum. The paintComponent() method ought to have protected access, not public. You don’t usually call it yourself; it is called by the JVM whenever you need to “paint” that component. And beware: it’s paintComponent not paintComponents, which you might come across some time.