Elements such as File, Edit etc. are too close together when using the JMenuBar in my application, it would look much nicer if there were some space between the elements. Is this possible?
Java – Adding spacing between elements in JMenuBar
javajmenubarswing
Related Topic
- Java – Fastest way to determine if an integer’s square root is an integer
- Java – Difference between StringBuilder and StringBuffer
- Java – How to directly initialize a HashMap (in a literal way)
- Java – What’s the difference between @Component, @Repository & @Service annotations in Spring
- Java – Should I avoid the use of set(Preferred|Maximum|Minimum)Size methods in Java Swing
- Java – Can’t execute jar- file: “no main manifest attribute”
- Java – How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version
- Java – Converting between java.time.LocalDateTime and java.util.Date
Best Answer
Yes, just add MenuBar item with empty text in it and make it not clickable/selectable