• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there any way to implement cell span in JTable?

 
Constantine Mosch
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I run this example http://www.coderanch.com/t/551463/GUI/java/JTable-cells-spanning-multiple-columns
In this example the user selects some cells at run-time and when he press a button the selected cells are merged.
This example is too complicated for me. (I dont' want to merge cells at run-time)
I want to create a JTable with all the cells of a row merged (like html table).

Can you suggest me some examples?
 
Rob Camick
Ranch Hand
Posts: 2699
10
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This example is too complicated for me.


Merging cells is complicated.
 
Constantine Mosch
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Rob
Ok. I am novice and merging cells is complicated.
I would appreciate if you suggest me another example.
Here I found the same example but without further explanations.
 
Rob Camick
Ranch Hand
Posts: 2699
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know an easy way. As I said its complikcated.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!