Hi Ajay, Welcome to the ranch. We are happy to have you here.
What do you mean by "interface between a tree and a table" Are you planning to display the same data in a JTree as well as a JTable? [ October 20, 2008: Message edited by: Maneesh Godbole ]
If you are looking for something with a tree like structure with each node's properties being displayed like a table... i would suggest have a look at swingx TreeTable component.
"interface between tree and table" means if the user clicks on the particular node of the tree(left pane) then corresponding table should be displayed on (right pane).
..if the user clicks on the particular node of the tree(left pane) then corresponding table should be displayed on (right pane)
This should not be difficult enough to build. 1) Create a custom object. 2) Wrap it inside a DefaultMutableTreeNode and build a JTree from it. 3) Figure out which node the user has selected 4) Extract the custom object from the selected node 5) Pass the object to the table model and ask it to update the table.