Using an SVG image in a custom module

I am quite new to Java Swing and still learning the ropes. I want to create a component for Vision that looks like this (Polygon + circle + rectangle + Level Indicator).
image

I think the best way to do this would be to use an SVG for the shapes and then a simple JPanel with a FlowLayout for the Level Indicator. My question is, how can I use SVG images with other Swing Components. I noticed IntelliJ has a Swing UI designer, but it doesn't let me put SVG images into the window.

Do you actually need the full capabilities of SVG embedding? Or is this simple shape all you need? If so, I would just use the builtin 2d graphics primitives in one component, and embed the PMILevelIndicator 'next' to it.

2 Likes