Results 1 to 5 of 5
- 07-08-2011, 06:39 PM #1
Member
- Join Date
- May 2010
- Posts
- 30
- Rep Power
- 0
- 07-08-2011, 07:39 PM #2
You can't.
db
- 07-08-2011, 07:39 PM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
You can set the colours of the text produced by the standard output and standard error streams but you can't set the colour for each individual character in Eclipse's console. Setting colours is highly terminal dependent anyway (what if you have a simple black and white terminal?)
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 07-08-2011, 09:19 PM #4
Member
- Join Date
- May 2010
- Posts
- 30
- Rep Power
- 0
Integer i=0;
while (i<100) {
i++;
System.out.println(i.toString());
System.err.println("error");
}
System.err.println("error") works partially BUT
problem is, the above function first prints 1 to 100 (black) and then it prints 100 times 'error' in red color. Is there any way, that it respects the execution order. I mean, first it print 1 then error then 2 then error and so on.
- 07-08-2011, 09:48 PM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
is System.out.print same as System.out.println ?
By usuf in forum New To JavaReplies: 8Last Post: 06-21-2011, 02:21 PM -
Println VS system.out.println
By ccie007 in forum New To JavaReplies: 2Last Post: 05-20-2010, 08:52 AM -
difference between system.out.println() & out.println()
By wickedrahul9 in forum Advanced JavaReplies: 5Last Post: 10-18-2008, 11:06 PM -
System.out.println
By sunjavaboy in forum Advanced JavaReplies: 3Last Post: 03-22-2008, 01:30 AM -
Preventing inserted text from becoming colored from previous style
By jkhoa in forum AWT / SwingReplies: 2Last Post: 08-10-2007, 12:36 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks