aspose file tools*
The moose likes Beginning Java and the fly likes help needed understanding code. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "help needed understanding code." Watch "help needed understanding code." New topic
Author

help needed understanding code.

Ruslan Ivanov
Ranch Hand

Joined: Feb 22, 2001
Posts: 72
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

Joined: Jan 09, 2001
Posts: 1492
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

Joined: Feb 22, 2001
Posts: 72
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

Joined: Feb 22, 2001
Posts: 72
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.
 
Consider Paul's rocket mass heater.
 
subject: help needed understanding code.