@Override
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);

        Graphics2D g2 = (Graphics2D) g;
        if (this.backgroundImage == null) {
            g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);
            g2.setFont(new Font(Font.DIALOG, Font.BOLD, 20));
            g2.drawString(GUIStrings.keyToLocatedString(GUIStrings.KEY_EDITOR_PREVIEWADJUST), (g.getClipBounds().width / 2) - 100,
                    g.getClipBounds().height / 2);
            return;
        }

        if (this.scaleBg) {
            g2.drawImage(this.backgroundImage, 0, 0, getWidth(), getHeight(), null);
        } else {
            g.drawImage(this.backgroundImage, 0, 0, null);
        }

        {
            this.brdPreview.paintComponents(g);
            this.btnAccPreview.paintComponents(g);
            this.shutdownPreview.paintComponents(g);
            this.btnLocalePreview.paintComponents(g);
            if (this.showUserlist) {
                this.userlistPreview.paintComponents(g);
            } else if (this.showUsertile) {
                this.usertilePreview.paintComponents(g);
            } else {
                this.secPreview.paintComponents(g);
            }
        }

        if ((this.counter % 2) == 0) {
            g.setColor(GUIConstants.WARNING_BG);
            g.drawOval(1, 1, 5, 5);
            this.counter = 0;
        }
        this.counter++;
    }