on 07-20-2005 4:02 PM
Hi,
Does anybody know how can I set the alignment of the header and the column name cells of a TableView?
Tableview.setTableHAlignment aligns the data cells but not the header nor the column name cells.
I'm using a DefaultTableViewModel that contains a matrix of the data and a vector of the column names.
Amit Pick
Hi Amit,
Embed your column name texts inside the alignment tags in HTML.
eg. if you have a column named "Column 1" and you want to make it center aligned, instead of using the line :
vector.addElement("Column 1");
while creatinf the model, use :
vector.addElement("<center>Column 1</center>");
This will make the header center aligned.
You can also use other HTML tags like this.
Hope this helps.
Ranjith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
you have posted this question twice, the second posting is marked as answered. Is it still open or did you really find out by yourself?
Best regards
Detlev
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.