|
-
October 28th, 1999, 06:07 AM
#1
easy question : how to create a table with only columns and ...?
this is just an easy question :
how do i create a table with only columns and no rows and the table's height is its column height.
can i specify the table's column width ?
thanks
http://members.xoom.com/lookads
-
October 28th, 1999, 07:46 AM
#2
Re: easy question : how to create a table with only columns and ...?
It is very easy. U will have to create a TableModel (extending from AbstractTableModel). This model will return no of columns and column names as they are, but it will return no of rows as zero.
This should do what u want.
Also u can do 'getColumnModel().getColumn( iCol )'. With this column object u can set/get width of the column etc.
- UnicMan
http://members.tripod.com/unicman
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|