title: Java: Clickable grid project - what to use? (JFrames & JPanels)?
body: <p>I'm currently getting started on a project where I use a grid for a game (Dot game, but that's not very important). Basically, it will be a grid of dots, where a player can click on the lines between the dots (like <a href="https://www.wikihow.com/images/thumb/8/83/Win-at-the-Dot-Game-Step-10.jpg/aid608874-v4-728px-Win-at-the-Dot-Game-Step-10.jpg" rel="nofollow noreferrer">this</a>). </p>
  
  <p><a href="https://i.stack.imgur.com/ac4DS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ac4DS.jpg" alt="enter image description here"></a></p>
  
  <p>I currently am using a <code>JFrame</code>, and was thinking about ways I could populate it with <code>JPanel</code> components to create clickable regions. Currently, I was thinking about trying to create for loops to correctly populate it, but I don't know how I could efficiently do this. </p>
  
  <p>Any recommendations for how to do this? I'm not asking people to write code for me, just point me in the right direction. Is there any layout (<code>GridLayout</code>?) that would work well for this?</p>