This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: help needed understanding code.
 
It's not a secret anymore!