You can use JDiagram to display database entity-relationship diagrams, as shown below. The diagram also demonstrates cascading- style links and using base and arrowhead shapes of different sizes.