This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes color changing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "color changing" Watch "color changing" New topic

color changing

David Maddox

Joined: Feb 25, 2004
Posts: 12
I am writing a program about the stock market. I was wondering if there was a way to change the output of your program in command prompt(i.e. stock goes down turns red) if so how
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

No... there are various ways to do this in a Unix shell, or on the DOS prompt, but there isn't a way to set the text color in Java's output stream.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
It is sorta covered in the JavaRanch Style Guide.
subject: color changing
jQuery in Action, 3rd edition