You might consider any of these:
-
JHotDraw, cited here, a meta-library for creating custom graph editors.
-
Batik, which implements SVG rendering.
-
JGraph demo and user manual.
-
GraphStream, illustrated here.
-
A custom renderer, with x based on a fraction of tree breadth and y based on recursion level.
-
A simple graph editor such as
draw.GraphPanel
, illustrated here.