public void init() {
        setSize(900, 400);
        setLayout(new BorderLayout()); // JFrame layout
        lblStatus = new JLabel(sMessage);
        lblMoney = new JLabel(sMoney);
        lblBet = new JLabel(sBet);
        txtMoney = new JTextField("", 4);
        arLblPlayer = new JLabel[6];
        arLblDealer = new JLabel[6];
        panBoard = new JPanel(new GridLayout(2, 6)); // 2 players - up to 6 cards each
        panInput = new JPanel();
        panBet = new JPanel(new GridLayout(8, 1));
        panStatus = new JPanel();
        ButtonGroup betgroup = new ButtonGroup();
        add(panStatus, BorderLayout.NORTH);
        add(panBet, BorderLayout.EAST);
        add(panBoard, BorderLayout.CENTER);
        add(panInput, BorderLayout.SOUTH);
        Font font = new Font("Copperplate Gothic Bold", Font.PLAIN, 16);
        Font cardlabel = new Font("Copperplate Gothic", Font.PLAIN, 14);
        panBoard.setBackground(NewGreen);
        panBet.setBackground(NewGreen);
        panInput.setBackground(NewGreen);
        panStatus.setBackground(NewGreen);
        panStatus.add(lblStatus);
        lblStatus.setFont(font);
        lblStatus.setForeground(Color.white);
        for (int i = 0; i < 6; i++) {
            arLblPlayer[i] = new JLabel();
            arLblDealer[i] = new JLabel();
        }

        for (int i = 0; i < 6; i++) {
            panBoard.add(arLblDealer[i]);
        }

        for (int i = 0; i < 6; i++) {
            panBoard.add(arLblPlayer[i]);
        }
        String sName;
        sName = JOptionPane.showInputDialog("Enter your name.");
        
        arLblDealer[0].setText("Dealer's Cards");
        arLblPlayer[0].setText(sName + "'s Cards");
        arLblPlayer[0].setFont(cardlabel);
        arLblPlayer[0].setForeground(Color.white);
        arLblDealer[0].setFont(cardlabel);
        arLblDealer[0].setForeground(Color.white);
        btnHit = new JButton("Hit");
        btnHit.addActionListener(new HitActionListener());

        btnStand = new JButton("Stand");
        btnStand.addActionListener(new StandActionListener());

        btnNewGame = new JButton("Deal Again");
        btnNewGame.addActionListener(new NewgameActionListener());

        btnBet = new JButton("Bet");
        btnBet.addActionListener(new BetActionListener());
        panInput.add(btnBet);
        //btnBet.setEnabled(false);
        btn5.setBackground(NewGreen);
        btn10.setBackground(NewGreen);
        btn20.setBackground(NewGreen);
        btn50.setBackground(NewGreen);
        btn100.setBackground(NewGreen);
        btnAllIn.setBackground(NewGreen);
        betgroup.add(btn5);
        betgroup.add(btn10);
        betgroup.add(btn20);
        betgroup.add(btn50);
        betgroup.add(btn100);
        betgroup.add(btnAllIn);
        panBet.add(lblMoney);
        panBet.add(lblBet);
        panBet.add(btn5);
        panBet.add(btn10);
        panBet.add(btn20);
        panBet.add(btn50);
        panBet.add(btn100);
        panBet.add(btnAllIn);
        sBet = "0";
        sMoney = "Money: $" + nTotal;
        lblMoney.setText(sMoney);
        lblMoney.setFont(font);
        lblMoney.setForeground(Color.white);
        lblBet.setFont(font);
        lblBet.setForeground(Color.white);
        
    }