• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to increase width of the tableheader

 
Vishal Methi
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to increase the width size of the tableheader .... ok let me give u an example what i want.... I want "serial" and just below to "serial" i wnat "no."
like.......
the JTableHader should look like this.....
Serial
No.
Hoping for ur co-operation.......
Give any idea whatever u have about it......
Thanx
Vishal
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the ranch Vishal.
Please do not duplicate your posts.
Is Serial the TableHeader and no the first cell? I do not understand how it is related to header width.
Set the width of the column with TableColumn.setPreferredWidth.
 
Vishal Methi
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx for the reply, I mean that in the header's first line i want to write only "serial" and in the same header with second line "No." ........
I want the subituite of the tag of html <colsapn> in java........
Thanx a lot.
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at these JTable Examples
 
Vishal Methi
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx a lot Jose Botella,
Thanx for ur co-operation.
Vishal
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!