aspose file tools*
The moose likes Beginning Java and the fly likes change the color of the console in a java application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "change the color of the console in a java application" Watch "change the color of the console in a java application" New topic
Author

change the color of the console in a java application

Abdel Remani
Greenhorn

Joined: Oct 05, 2004
Posts: 8
Hi guys
I want to know how to chnage the windows console background and foreground(text color) in a java application I'm working on.

N.B. It's not an applet


Abdel Remani
rahul V kumar
Ranch Hand

Joined: May 20, 2003
Posts: 82
Please excuse my ignorance, do you mean the DOS command prompt ??

If its dos prompt then right click on left most corner of that window and go to properties ...from there to colors tab...n pick your color.
Abdel Remani
Greenhorn

Joined: Oct 05, 2004
Posts: 8
it is dos commad, but I want to do that using java code
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: change the color of the console in a java application