public void setHeading ( String heading ) { String m_heading = heading ; String [ ] preCol = m_heading . split ( "\n" ) ; String [ ] [ ] cells = new String [ preCol . length ] [ this . m_columnNumber ] ; for ( int i = 0 ; i < preCol . length ; i ++ ) cells [ i ] = preCol [ i ] . split ( ";" , this . m_columnNumber ) ; for ( int i = 0 ; i < cells [ 0 ] . length ; i ++ ) { String xhead = "" ; for ( int j = 0 ; j < preCol . length ; j ++ ) { //if(cells[j][i]!=null) xhead += ( cells [ j ] [ i ] + " " ) ; } this . m_xheading . add ( xhead ) ; } }
Sets the table heading rows