| Author |
colors for first six rows
|
Ganeshkumar cheekati
Ranch Hand
Joined: Oct 13, 2008
Posts: 362
|
|
if(lstData.size()>0){
String sTdColor = "#D2D6D9";
int Q1index = 0,Q2index = 0,Q3index = 0,Q4index = 0,Q5index = 0,Q6index = 0 ;
for(int i=0;i<lstData.size();i++){
if((i%2)==0){
System.out.println("i value="+i);
System.out.println("i%2 value="+(i%2));
System.out.println("number for colour"+((i%2)==0));
sTdColor = "#ffebbb";
}else{
System.out.println("i value="+i);
System.out.println("i%2 value="+(i%2));
System.out.println("number for colour"+((i%2)==0));
sTdColor = "#fcf9f2";
}>
|
SCJP5 and SCWCD1.5
Think Twice Act Wise...
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56202
|
|
|
And?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: colors for first six rows
|
|
|