Solved

How do i remove the left space from a JMenuItem?

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
allswap challenge 6 98
JList custom Cell Renderer refresh 15 57
Adding multiple JVM environments to RedHat 6 7 20
Java Restore security prompts not working 10 12
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…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
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…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

772 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