title: How do we show the gridline in GridLayout?
body: <p>How do we show the gridline in GridLayout? in Java?</p>
  
  <pre><code>JPanel panel = new JPanel(new GridLayout(10,10));
  panel.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
  
  for (int i =0; i&lt;(10*10); i++){
     panel.add(new JLabel("Label"));
  }
  </code></pre>