Solved

How do i remove the left space from a JMenuItem?

Posted on 2004-10-14
6
563 Views
Last Modified: 2012-08-13
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.
0
Comment
Question by:yyl1
  • 2
6 Comments
 
LVL 14

Accepted Solution

by:
Tommy Braas earned 150 total points
ID: 12312791
Hi yyl1,

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

Cheers!

\tt
0
 

Author Comment

by:yyl1
ID: 12553563
i was looking for a different solution, but thanks anyway.
0
 

Author Comment

by:yyl1
ID: 12577695
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now