HI I am new to
java and wanted to design a programme to do the following:
1-create a 6x6 grid
2-each time a button is pressed ask the user to select from 6 colours and colour in the selected button
3-if a button is clicked that has a colour already go to default
4-each row/column can have one instance of each colour
5-as soon as the fifth colour is filled in in a row or column the sixth colour appears in the final blank square automatically.
6-once a row is completed the squares can nopt be clicked on any more.
7-data should be read in and colour the squares from a file which is of the form R1 C2 Green R1=row number C2=column number.
i have the 6x6 grid and a window for colour choice but it needs fine tuning. the window should appear only once and it appears each time teh same button is pressed.
thanks in advance
[update: added
code tags]