Swing: el método paintComponent no se llama

i simplemente implementó una clase que hereda JPanel como a continuación

public class Orpanel extends JPanel {

....
    @Override
    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2d = (Graphics2D)g;
        g2d.setPaint(tpaint);
        g2d.fill(rect); 
    }
....
}

class Orpanel está cargando la imagen y ajustando su propio tamaño.

Aquí hay una pregunta.

Calling JFrame's setContentpane (instancia de Orpanel) hace que funcione bien, pero cuando adjunto Orpanel a JFrame llamando al método add () en lugar de setContentpane (sé que setcontentpane no significa adjuntar ... de todos modos), no funciona.

inalmente descubrí cuando utilicé el método add (), el componente que se agregó a JFrame no llama al método paintComponent (). aunque llamo manualmente al método repaint (), todavía no se llama al método paintComponent ().

¿Me he perdido algo? cualquier ayuda será apreciada!

thx de antemano. Jaeyong shin.

i agregó código extra.

public Test(OwPanel op) 
{
    super();
    Dimension monitor = Toolkit.getDefaultToolkit().getScreenSize();
    op.setBackground(Color.white);
    this.setBackground(Color.white);        
    this.setBounds(monitor.width / 2 - 200 , monitor.height / 2 - 200, 400, 400);       
    this.setDefaultCloseOperation(EXIT_ON_CLOSE);
    this.setTitle("test");      
    this.setLayout(null);
    this.getContentPane().add(op);
    //this.setContentPane(op);
    this.setVisible(true);
    this.validate();
}

    public static void main(String[] args) {
    // TODO Auto-generated method stub

    SwingUtilities.invokeLater(new Runnable() {
        @Override
        public void run() {
            OwPanel op = new OwPanel("d:\\java_workplace\\img\\img1.jpg", 100, 100);
            OwLabel ol = new OwLabel("d:\\java_workplace\\img\\img2.jpg", 300, 50);
            Test tst =  new Test(op);
            tst.add(ol);
        }
    });

still no funciona si el método setContentpane () se reemplaza por getContentpane (). add (). no te confundas Owpanel y Orpanel son lo mismo

Respuestas a la pregunta(2)

Su respuesta a la pregunta