Is there a way to get first the text and than the icon at
a JCheckBoxMenuItem("select all pf",icon2); ?
(was all over the place and can not find it)
Printable View
Is there a way to get first the text and than the icon at
a JCheckBoxMenuItem("select all pf",icon2); ?
(was all over the place and can not find it)
setHorizontalTextPosition(...)
Yes camickr I tried that one but it does not have any effect...
So what would be the coding here when checkbmenu1 is of
JCheckBoxMenuItem("select all pf",icon2);
checkbmenu1.setHorizontalAlignment(checkbmenu1.LEF T);
checkbmenu1.setHorizontalAlignment(JCheckBoxMenuIt em.LEFT);
checkbmenu2.setHorizontalAlignment(SwingConstants. RIGHT);
...........
checkbmenu1.setHorizontalAlignment(checkbmenu1.LEF T);
setComponentOrientation(ComponentOrientation.RIGHT _TO_LEFT)
db
Thanks db that indeed works but now everything get's cluttered to the right
so I tried: checkbmenu1.setHorizontalAlignment(JCheckBoxMenuIt em.LEADING);
again no effect.... tricky stuff but I'll keep studying, thanks a lot
Fundamental question: why do you think you need this?
If you want total customization, you might need to write your own UI delegate, possibly extending BasicCheckBoxMenuItemUI. Is it worth the trouble, just to create a layout that is unfamiliar to regular users of GUIs?
db