title: Java Making A Checkerboard GUI
body: <p>I am trying to draw out a checkerboard GUI but I am having some issues with it. </p>
  
  <p>I have the frame and the layout already set, I need someones help with the logic to make the checkerboard alternate the appropriate colors.</p>
  
  <p>This is the frame:</p>
  
  <pre><code>    JFrame checkerBoard = new JFrame(); 
      checkerBoard.setSize(400, 400); 
      checkerBoard.setVisible(true);
      checkerBoard.setTitle("CheckerBoard"); 
      checkerBoard.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
  
      int row = 8; 
      int col = 8; 
  
      Container pane = checkerBoard.getContentPane(); 
      pane.setLayout(new GridLayout(row, col)); 
  </code></pre>
  
  <p>Can someone please help me with the logic to create the checkerboard pattern using 64 JPanels? Thank you all in advance for your help!</p>