When resetting text in my JMenuItem there seems to be white space at the end of the text, even though I have not included it in the text itself. The text starts out alright, it is changed to suit the function, but when changed back to the default menuitem text, it seems longer than the origianl. I have tried using revalidate()
on the menu and the menuitem text still appears to contain white space at the end. Any help is appreciated as I have tried deverything inclusing wrapping setText() in invokeLater(). Thank you.
posted 6 years ago
You've been asked for a SSCCE in the past. This question is no different.