Solved

Java swing component to render a tree table

Posted on 2009-03-29
3
1,157 Views
Last Modified: 2013-11-23
Hi,
I am new to swing, but have a good knowledge of java in general.

I am looking for a swing component to render a tree table, that its nodes are tables.
The nested tables have different columns (name and type) then the wrapping table.
The nested tables may also be table trees that will be expanded to more hierarchy's level.
Attached is a screenshot of what I am trying to get.

Does anyone know how to code this component, which swing components to use etc? Does anyone knows a third party component that does something similar? Any help will be very appreciated!
TableTree.JPG
0
Comment
Question by:amazingwolf1
  • 2
3 Comments
 
LVL 12

Expert Comment

by:basav_com
ID: 24012878
0
 
LVL 4

Author Comment

by:amazingwolf1
ID: 24012990
I'm afraid its not what I need.
In both of the examples there is an ordinary tree table implementation, which btw  can also be done with JXTreeTable.
What I refer to as the "ordinary" functionality, is diaplying the same information for all levels:
For example - At file system tree.
The highest level is directory - and we display Name, Size, date modified.
For the next child level - files, we display again the same data at the same colums - name size etc.
That functionality is rather easy to get.
But what if I want to display data about author and mime type for files only?
I want to be able to display different information per hierarchy level, as I demonstrated in the attached screenshots.
I couldnt find similar example in the net yet.
0
 
LVL 4

Accepted Solution

by:
amazingwolf1 earned 0 total points
ID: 24040699
After consulting a swing Guru, I realized the solution will be to create a control myself, while implementing the sort, expand, collaps etc by a combination of seperate tables.

Is there any other option, or does this sums it up?
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question