Computer Science Canada

changing colour of text in java

Author:  apomb [ Wed Jan 21, 2004 9:02 pm ]
Post subject:  changing colour of text in java

Im making a movie rental program and i want to change the text colour... just need the signature...plz

Author:  BlAcK TuRtLe [ Wed Jan 21, 2004 9:48 pm ]
Post subject: 

sure thing pomby. It's c(or whatever ur console is).setTextColor(Color.the color u want.
For example
code:

a.setTextColor(Color.blue);

also at the top of the program u need to put
code:

import hsa.*;

Author:  apomb [ Thu Jan 22, 2004 5:04 pm ]
Post subject:  reply

Thx man... as you know i handed it in today but didn't get to use it. but ill remember that!


: