I have written a program in java with netBeans
editor.
my form have a jmenuBar
with some jmenu
in right alignment.
for example jmenu1
have some jmenuItem
, i want right align all jmenuitem
's text.
when i change Horizontal alignment of them to right, text not shown when i run it.
menuItem1.setHorizontalAlignment(SwingConstants.RIGHT);
How i can do it?