@Override
    public void run() {
        frame = new JFrame("All cards");
        frame.setPreferredSize(new Dimension(800, 600));

        JLayeredPane contentPanel = new JLayeredPane();

        Border padding = BorderFactory.createEmptyBorder(10, 10, 10, 10);

        contentPanel.setBorder(padding);

        frame.setContentPane(contentPanel);
        frame.setLayeredPane(contentPanel);

        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        try {
            createComponents(frame.getLayeredPane());
        } catch (IOException ex) {
            Logger.getLogger(DrawAllCards.class.getName()).log(Level.SEVERE, null, ex);
        }
        frame.pack();
        frame.setVisible(true);

    }