Store HexDecimal Color Code in .properties file?
I am trying to make my program/application more customizeable, but here's the problem:
The color codes it uses are are integers in the form of 0xffffff and so on, but when I save it to a .properties file using String.valueOf(myColorCode), it saves it as a really long integer. Is there any way to preserve the format when reading and writing from a properties file?
Re: Store HexDecimal Color Code in .properties file?
Try the Integer.toHexString method instead.