Making a GridLayout?
I am new in this site and need some help with making a board using the GridLayout. I have a project where i have to make board games. And all these games have one common things, i need to make a board. So instead of making board for each, i want to have a super class which has a drawBoard method. So how am i going to do that? Below is my rough code but its not right.
public void drawBoard (int numOfRow, int numOfColoumn)
GridLayout grid = new GridLayout (numOfRow, numOfColoumn);
This is how i thought it would work but it doesnt. Any help? and i want a boarder outline to my grid/board aswell.
Re: Making a GridLayout?
You state that it doesn't work, but perhaps need to tell us more such as how does the code not work? What behaviors are you trying to achieve but not seeing? Can you show an image of what you're attempting (if that would be helpful)?