@Override
        public void paint(Graphics g) {
            super.paint(g);

            for (int i = 0; i < ar.length; i++) {

                for (int j = 0; j < ar[i].length; j++) {
                    g.setColor(new Color(ar[i][j]));
                    g.fillRect(40 + j, 40 + i, 1, 1);
                }
            }

        }