i have one of my table column which has long text which could be having multiple lines.
I have written the following lines in TableModel class.
By doing so in the JTable i can see multiple lines for all the text greateg then 50, but in the report i'm getting html tags also and all in the same line.Code:public Object getValueAt (int row, int column) { if(column == 2) { String str = (String)data[row][column]; if (str.length()>50) { String html_string = "<html>" + str.substring(0,50) + " " + str.substring(50,str.length); } } return data[row][column]; }
can any one give me ome better idea then this.
TIA


Reply With Quote