Solved

How do i remove the left space from a JMenuItem?

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
spring jars download 1 35
maven disable workspace resolution 1 21
ejb mdb examples 1 8
What browser will run Java? 7 56
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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 explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

856 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