How do i remove the left space from a JMenuItem?

If i have a JMenuItem, i have by default a space (i think 20px) on the left of the menu name (or left to the icon of the menuItem).

How do i remove this space? You can see in Intellij for example, in their menus, that they removed this space and you have an icon with no space left from it.

Thanks,
Yossi.
yyl1Asked:
Who is Participating?
 
Tommy BraasConnect With a Mentor Commented:
Hi yyl1,

You could play around with the insets, or you could write your own MenuItemUI.

Cheers!

\tt
0
 
yyl1Author Commented:
i was looking for a different solution, but thanks anyway.
0
 
yyl1Author Commented:
but this is no solution. so why it's accepted? it didn't help at all and i knew what he said already. No reason for him to get the privilige for that.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.