@Override
    public void paint(Graphics g) {
        super.paint(g);
        Graphics2D g2;
        g2 = (Graphics2D) g;
        g2.setRenderingHint(
                RenderingHints.KEY_TEXT_ANTIALIASING,
                RenderingHints.VALUE_TEXT_ANTIALIAS_GASP);

        if (activeLeftPanel) {
            g2.setColor(new java.awt.Color(240, 240, 240));
            drawLeftPanel(g2);
            g2.setColor(Color.gray);
            drawRightPanel(g2);
        } else {
            g2.setColor(Color.gray);
            drawLeftPanel(g2);
            g2.setColor(new java.awt.Color(240, 240, 240));
            drawRightPanel(g2);
        }
        g.dispose();
    }