Hi everyone,
For a group assignment we have to develop a property trading game similar to monopoly. At the moment we have the GUI developed as well as a basic idea of how to go about doing it but was wondering if anyone could help a bit!:S
Is it possible to get an index for a JPanel object? What we want is for all 40 squares to be stored in order in an array list, then when the game starts it should read the values and assign them to the JPanels on the board e.g. JPanel 0 gets property 0 details (Pass Go), JPanel 1 gets property 1 details and so on... is this even possible or are we going the wrong way about it?
The only other way we can think of is hard coding the values into each square's labels and so on :( any help is much appreciated - not looking for code or anything, just a few pointers thats all!