public void paintComponent(Graphics g) {
       
       super.paintComponent(g); // fill with background color.
       
       g.setFont(bigFont);
       g.setColor(Color.GREEN);
       g.drawString(message, 10, getHeight() - 10);
       
       // Draw labels for the two sets of cards.
       
       g.drawString("Dealer's Cards:", 10, 23);
       g.drawString("Your Cards:", 10, 153);
       
       // Draw dealer's cards.  Draw first card face down if
       // the game is still in progress,  It will be revealed
       // when the game ends.
       
       g.setFont(smallFont);
       if (gameInProgress)
          drawCard(g, null, 10, 30);
       else
          drawCard(g, dealerHand.getCard(0), 10, 30);
       for (int i = 1; i < dealerHand.getCardCount(); i++)
          drawCard(g, dealerHand.getCard(i), 10 + i * 90, 30);
       
       // Draw the user's cards.
       
       for (int i = 0; i < playerHand.getCardCount(); i++)
          drawCard(g, playerHand.getCard(i), 10 + i * 90, 160);
       
    }  // end paint();