Solved

How do i remove the left space from a JMenuItem?

Posted on 2004-10-14
6
557 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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…

762 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

23 Experts available now in Live!

Get 1:1 Help Now