I have a table in a database named \"Process\"
This process table has 3 fields:
Re Q1: You could find on internet resources several Java implementations of Tree structure, for example this generic tree.
Re Q2: One alternative is using JTree. Check the Java Tutorial trail on How to use Trees
JGraphT could be a good starting point to build something like your example. Check the demo at http://jgrapht.sourceforge.net/visualizations.html