on 05-09-2005 8:54 PM
Hi
I am trying to display some text in a cell content of a tableView.
The text contains more lines. How do I get them displayed wih new line character between them? I've tried with StringBuffer s and s.append("\n"), but all I get is only one row.
Any help greatly appreciated.
Regards
Hi Raluca,
You could do the following.
TableView tv = new TableView("myTableView");
//this example i am turning the encoding false on every
// cell in column 1
tv.getColumn(1).setEncode(false);
When you pass the data to the cell you can use html tag <b><br></b> which will separate the line into two.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prakash, thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.