I have to create a simple Text Editor which has menu bar with specific options.
One of them is to change font colors by selecting it on JRadioButtonMenuItem which has to look exactly as professor described in the picture.
My problem is that I don't know how to create and add those little circles between text and radio button.

Somehow I've managed to solve my problem by using Icon interface. Here's a little part of my code with final result. I'm still open for any kind of tips and improvements to my code to make it better and learn by coding properly.
Here's my Circle class:
and my GUI method of showing menu bar:
result