Consider the Java code below, what would happen if there were no paintComponent method in JPanel class?
...
import javax.swing.JPanel;
public class ShapesJPanel extends JPanel
{
public void paintComponent( Graphics g )
{
super.paintComponent( g );
//more codes here
}
}