Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Strange MenuItem Behaviour  RSS feed

 
Isaac Hewitt
Ranch Hand
Posts: 191
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.



 
Rob Camick
Ranch Hand
Posts: 2801
15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You've been asked for a SSCCE in the past. This question is no different.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!