If you want to print in color to the shell the user is using, thats not possible to specify from Java, it is controlled by the xterm the user is running. If you are asking the question in a pop up, say in a JDialog, just set the foreground color of the JLabel to the desired color.
Hope that helps!
Life is good on the Ponderosa,<br />but mind where you step.
Some do! (ASCI escape codes) Unfortunately, the color codes don't. Just to be sure, I tried them with xterm, konsole, and gnome-terminal. The clear screen, normal, bold, and reverse codes work just fine, but the color codes seem to be ignored.
Thanks for the hint Joe! I never thought to try those!
Joined: Dec 27, 2002
The color codes don't work..... Because I was formatting them wrong! Oops! Now they work fine. Darrin