The header for the paintComponent method is ________________.
A. private void paintComponent(Graphics g)
B. protected void paintComponent(Graphics g)
C. public void paintComponent(Graphics g)
D. protected void paintComponent()
The correct answer is B