How to re-use saved colour values

Hello good people. I am trying to save colour information stored as a hex value to a printWriter object so that i can load it up again another time. Ive used the hex() method to get it to save it properly but i am having trouble on the other end when i try to put the salvaged string into a colour object from an array, as in: c1 = piece[1]; it seems like it is expecting an int and im giving it a string but ive passed hex to colours before with no problems. Im sure this is a rather simple problem but its getting on my wick! Many thanks, Danny.

Tagged:

Answers

Sign In or Register to comment.