Thursday, 9 May 2013

And he does his thing again ;P

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..

No comments:

Post a Comment