Solved

Java swing component to render a tree table

Posted on 2009-03-29
3
1,150 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
Comment Utility
0
 
LVL 4

Author Comment

by:amazingwolf1
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now