In my Java application, I was able to get the Color of a JButton in terms of red, green and blue; I have stored these values in three ints.
How do I convert those RGB values into a String containing the equivalent hexadecimal representation? Such as #0033fA
You can use
Use capital X’s if you want your resulting hex-digits to be capitalized (
#FFFFFFvs.#ffffff).