Hi, I am trying to make a game board in java. The idea is that the user will enter the length and this will be squared and the board with corresponding number of squares will be displayed. Any ideas on how to do this? I know it'll involve some kind of loop and perhaps an array or arraylist.

Regards

Try GridLayout and yes, you'll probably need "some kind of loop" with JPanels or JLabels.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.