You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iconTextGap is supposed to govern the space between the icon<->text in a label component.
In JMenuItem this appears to be making the entire menu much larger when set.
Here is an example of iconTextGap 4: (Notice that the menu appears to be in general too wide)
The same menu with iconTextGap of 10:
With an increase in iconTextGap the menu gets wider and wider for no reason. Its also likely too wide at smaller values due to this issue (this is on MacOS).
On my non-retina display increasing iconTextGap from 4 to 10 increased the menu width by 17 pixels.
The text was updated successfully, but these errors were encountered:
Interesting, I guess I assumed it was just the JLabel property for the menu item. Maybe since theres accelerator and hotkeys that can be displayed in the margins it was overloaded
- stable left margin (always space for one icon)
- right aligned accelerators
- larger gap between text and accelerator
current limitations:
- no HTML text support
- text not vertically aligned with other menu items if icons have different sizes
- vertical/horizontal alignment/textPosition properties are ignored
(issues #3 and #54)
Hi,
iconTextGap is supposed to govern the space between the icon<->text in a label component.
In JMenuItem this appears to be making the entire menu much larger when set.
Here is an example of iconTextGap 4: (Notice that the menu appears to be in general too wide)
The same menu with iconTextGap of 10:
With an increase in iconTextGap the menu gets wider and wider for no reason. Its also likely too wide at smaller values due to this issue (this is on MacOS).
On my non-retina display increasing iconTextGap from 4 to 10 increased the menu width by 17 pixels.
The text was updated successfully, but these errors were encountered: