How to place a JPanel
in a JMenuItem
on the left or right (referring to the position relative to the JMenuItem
text), and not in the center (directly over the text), how does this happen automatically?
I explain:
There is a regular JMenuItem created like this:
new JMenuItem("menu item text")
How to put a JPanel left or right, and not in the center right on top of this text?