This lightweight Java Swing application renders PlantUML diagrams directly inside a GUI window.
It takes a UML source string, generates a PNG image using PlantUML, and displays it in a scrollable panelβno external tools or file generation required.
- Display the generated diagram inside a Swing
JPanel - Scrollable viewer for large diagrams
This project consists of two files:
Driver.javaβ Application entry point and main windowDiagramPanel.javaβ Component that renders and displays the PlantUML output
<dependency>
<groupId>net.sourceforge.plantuml</groupId>
<artifactId>plantuml</artifactId>
<version>1.2023.13</version>
</dependency>