Showing Composite View : Need help urgently
I have a requirement in which i have to show a hirearachy of a particular process at top left side (inset view) . The Process has many suprocesses so in the inset, it will display as:
ProcessName
|_ SubProcess1Name
|_ SubProcess2Name
Can you suggest me the way to implement this functionality. I heard there is something called composite view. but i havent got enuogh information on that on net.
Please help me achieve this .
Thanks in advance
Pankaj
[502 byte] By [
pbhomiaa] at [2007-10-2 20:16:39]

Thanks for the reply,
Yes, that i'm trying to achieve by using JTree only in JInternalFrame. But not able to achieve what i want. let me clarify the problem in detail:
I have a Flowchart type view of a process which i display on canvas. I have to show the process and its subprocesses (in JTree format) at top left hand side so that when user clicks a particular subprocess(from the JTree), it loads the subprocess on the canvas.
Using JInternalFrame is not meeting my requirements.what i did in that was:
I used a seperate JInternal Frame for the canvas and Tree. Now when user clicks on the canvas, the tree JInternalFrame goes behind, which i dont want to happen. It should always be at the top left side irrespective of user clicking on the canvas or JTree.
I heard something about composite view on net but not able to figure out how to use.
Why are you using internal frames? Why not just have two panels on the main frame?
I don't understand what you mean by the canvas vs the tree so I may be missing something. Is the canvas just come textarea where you show info about the process selected in the tree? If so, and you just want to display them side by side, the above is appropriate.
First let me clearify that the canvas is nothing but a JPanel (say panel1).
The problem is I'm already having one panel (say panel2) in which some predifined task are there which user can drag and drop and update the process in panel1. The panel1 can have very big processes so right now it covers approx 80% of the frame and rest 20% by panel2. Fitting a JTree in another panel will reduce the display area of panel1 which i dont want.
Moreover, it is requirement from the client :(
Pankaj