Ryk gave me another way to program the thing, so I'm going to change around my code again to accommodate that, cause it's a lot more efficient.
Basically, what his way, to do it was:
Use a class to extend all the JLabels.
To print all the for loops to the screen, name all the properties in order and a counter at the same number. Therefore, you can use a loop to create the labels (in an array), and do it individually for north, east, south and west.
He also said that it 'twas possible to do it for both east and west at the same time but I was too confuzzled..
Welcome! Fandoms in the monopoly include Doctor Who, Sherlock, Merlin, Harry Potter, Lord of the Rings and Narnia. You'll see milestones while coding, errors that I have encountered, an "environmental message" , "computer science and careers" that might relate to this program, and how emerging areas of computer science might benefit from this program. Other things include errors that were encountered, the brainstorming before coding. Ryk, happy reading!
Thursday, 9 May 2013
Hurray! :D
So I've finally finished the game board set up. I'm going to have to program the layeredPane part, so that when the pawns move, the user can see their pawns. But for now, at least, it's amazing
Now, I'm going to have to add all these labels into the class declaration where when the user clicks the properties, a frame will show up with the more massive pictures.
And I formatted it much better, so here is the official gameboard:
Now, I'm going to have to add all these labels into the class declaration where when the user clicks the properties, a frame will show up with the more massive pictures.
And I formatted it much better, so here is the official gameboard:
Subscribe to:
Posts (Atom)