Artefatos visuais aparecendo no JPanel

Eu estou tentando criar um programa com 2JPanel usandoBorderLayout. O painel central é para desenho aleatório de retângulo, enquanto o painel sul é para os botões.

Eu estou recebendo uma imagem estranha do botão no canto superior esquerdo doJFrame sempre que eu passar o cursor do mouse sobre o botão Norte ou Sul. Eu fiz algumas pesquisas e descobri que isso poderia ser a razão para ter um fundo transparente. Eu tentei usarsuper.paintComponent(g) para o painel, mas o resto dos retângulos desenhados anteriormente desaparecem. Eu preciso dos retângulos para ficar noJPanel mas não a imagem estranha no canto superior esquerdo.

Eu não sei o que estou fazendo errado, espero que alguém possa ajudar ou dar alguma pista sobre como resolver esse problema.

    public class TwoBRandomRec extends JFrame{

    private static final long serialVersionUID = 1L;

    public static void main(String[] args) {
        TwoBRandomRec rec = new TwoBRandomRec();

        rec.setSize(500,500);
        rec.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        rec.setVisible(true);
    }

    public TwoBRandomRec() {
        //Create the buttons
        JButton north = new JButton("North");
        JButton south = new JButton("South");
        DrawPanel drawPanel = new DrawPanel(500,500);

        JPanel southP = new JPanel();
        southP.add(south);
        southP.add(north);

        this.add(drawPanel, BorderLayout.CENTER);
        this.add(southP, BorderLayout.SOUTH);

        this.setTitle("TwoButtonRandomRec");
        this.pack();        
    }

    public class DrawPanel extends JPanel {

        private static final long serialVersionUID = 1L;

        private Random rand = new Random();
        private int x,y,xSize,ySize;
        private int height,width;

        public DrawPanel(int w,int h) {
            width = w;
            height = h;
        }
        public void RandomX(){
             x=rand.nextInt(width-1);
             xSize=rand.nextInt(width-x);
         }

         public void RandomY(){
             y=rand.nextInt(height-1);
             ySize=rand.nextInt(height-y);
         }

         public Color RandomColour(){
             rand.nextInt(height);
             return new Color(rand.nextInt(255),rand.nextInt(255),rand.nextInt(255));
         }

        @Override
        protected void paintComponent(Graphics g) {
            RandomX();
            RandomY();

            g.setColor(RandomColour());
            g.fillRect(x, y, xSize, ySize);
            try {
                Thread.sleep(50);

            } catch (InterruptedException e) {  
            }

            repaint();
        }
    }
}

questionAnswers(1)

yourAnswerToTheQuestion