File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.
I agree. Here's the link:
subject: color changing
jQuery in Action, 3rd edition