• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help needed understanding code.

 
Ruslan Ivanov
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi please visit this site and take a look at example of MultipleCellHeaders. I can't understand how this was done. The code is straight forward. Still i can't understand how this was done. Thanks. http://www2.gol.com/users/tame/swing/examples/JTableExamples1.html
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ruslan,
IMO, you need to get the extra package
jp.gr.java_conf.tame.swing.table
because it contains the GroupableColumn and ColumnGroup classes. Without it, the example can not run or understood.
Regards,
Manfred.
 
Ruslan Ivanov
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are u sure ? Because i just downloaded these 2 classes and it worked fine. classes downloaded
MultiLineHeaderExample.java
MultiLineHeaderRenderer.java
ignore the package just take it out and it will work fine. I just don't see how the renderer could work.
Thanks.
 
Ruslan Ivanov
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think i just understood how this thing is working. It uses JList to add items to it so now it looks on 2 labels because it uses JList as a renderer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic